protobuf-javascript icon indicating copy to clipboard operation
protobuf-javascript copied to clipboard

Enhancement request: Javascript delimited versions of serializeBinary and deserializeBinary

Open gegles opened this issue 7 years ago • 2 comments

As in Java and other implementations, it would be great if the JS impl could provide facilities to easily prepend the size of the encoded message (as a varint) directly.

Right now, I am forced to use another lib (called "varint") to encode/decode the size and prepend it the serialized buffer....

Let us know if if it makes sense.

Cheers. G.

gegles avatar Aug 02 '16 22:08 gegles