The spec indicates the encoding is [type] [length] <integer in byes>, where length is an unsigned LEB128.
However, since unsigned LEB128 is also variable-width, how would a binary parser tell when length ends and the number actually begins? I took a look at go-concise-encoding but was unable to follow where the actual binary parsing began.
The spec indicates the encoding is
[type] [length] <integer in byes>, wherelengthis an unsigned LEB128.However, since unsigned LEB128 is also variable-width, how would a binary parser tell when
lengthends and the number actually begins? I took a look atgo-concise-encodingbut was unable to follow where the actual binary parsing began.