Skip to content

Parsing variable-width integers in CBE #42

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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