dissect.cstruct.types.bytesinteger

Module Contents

Classes

BytesInteger

Implements an integer type that can span an arbitrary amount of bytes.

class dissect.cstruct.types.bytesinteger.BytesInteger(cstruct: BytesInteger.__init__.cstruct, name: str, size: int, signed: bool, alignment: int = None)

Bases: dissect.cstruct.types.RawType

Implements an integer type that can span an arbitrary amount of bytes.

static parse(buf: BinaryIO, size: int, count: int, signed: bool, endian: str) List[int]
static pack(data: List[int], size: int, endian: str, signed: bool) bytes
default() int

Return a default value of this type.

default_array(count: int) List[int]

Return a default array of this type.