Constructors
constructor
Parameters
Properties
consumed
consumed: number = 0
source
source: Uint8Array
Accessors
internalBytes
- get internalBytes(): Uint8Array
Returns Uint8Array
readOffset
- get readOffset(): number
- set readOffset(val: number): void
Returns number
Parameters
Returns void
Methods
readBigUIntBE
- readBigUIntBE(length: number): bigint
Parameters
Returns bigint
readBigUIntLE
- readBigUIntLE(length: number): bigint
Parameters
Returns bigint
readBytes
- readBytes(length: number): Uint8Array
Parameters
Returns Uint8Array
readUInt16BE
Returns number
readUInt32BE
Returns number
readUInt8
Returns number
readUInt8Enum
- readUInt8Enum<T, TEnumValue>(enumVariable: { [ key in string]: TEnumValue }, invalidEnumErrorFormatter: ((val: number) => Error)): TEnumValue
Type Parameters
T extends string
TEnumValue extends number
Parameters
enumVariable: { [ key in string]: TEnumValue }
invalidEnumErrorFormatter: ((val: number) => Error)
Returns TEnumValue