- Preparing search index...
- The search index is not available
Stacks.js
Constructors
constructor
- new BytesReader(arr): BytesReader
-
Properties
consumed
consumed: number = 0
source
source: Uint8Array
Accessors
internalBytes
- get internalBytes(): Uint8Array
-
Returns Uint8Array
readOffset
- get readOffset(): number
-
Returns number
- set readOffset(val): void
-
Returns void
Methods
readBigUIntBE
- readBigUIntBE(length): bigint
-
Returns bigint
readBigUIntLE
- readBigUIntLE(length): bigint
-
Returns bigint
readBytes
- readBytes(length): Uint8Array
-
Returns Uint8Array
readUInt16BE
- readUInt16BE(): number
-
Returns number
readUInt32BE
- readUInt32BE(): number
-
Returns number
readUInt8
- readUInt8(): number
-
Returns number
readUInt8Enum
- readUInt8Enum<T, TEnumValue>(enumVariable, invalidEnumErrorFormatter): TEnumValue
-
Type Parameters
-
T extends string
-
TEnumValue extends number
Parameters
-
enumVariable: {
[key in string]: TEnumValue
}
-
invalidEnumErrorFormatter: ((val) => Error)
-
- (val): Error
-
Returns Error
Returns TEnumValue