What integer size is used for length delimiter? #543
matthewmturner
started this conversation in
General
Replies: 1 comment 2 replies
-
As per the documentation you should expect a length delimiter to be between 1 and 10 bytes. It is encoded as a variable length |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using
encode_length_delimited
ordecode_length_delimited
what integer size is used to represent the length? I have mutiple protocol buf messages in a file and i want to iterate through and read them but i think i need to allocate a buffer of the right size in order to do this - which would require knowing the size of the length delimiter.Unless i'm doing something wrong?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions