Skip to content

Parsing variable-width integers in CBE #42

@AkshatM

Description

@AkshatM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions