dissect.cstruct.types.leb128

Module Contents

Classes

LEB128

Variable-length code compression to store an arbitrarily large integer in a small number of bytes.

class dissect.cstruct.types.leb128.LEB128(cstruct: LEB128.__init__.cstruct, name: str, size: int, signed: bool, alignment: int = 1)

Bases: dissect.cstruct.types.base.RawType

Variable-length code compression to store an arbitrarily large integer in a small number of bytes.

See https://en.wikipedia.org/wiki/LEB128 for more information and an explanation of the algorithm.

signed: bool
default() int

Return a default value of this type.

default_array(count: int) list[int]

Return a default array of this type.