Skip to main content

Class: UnalignedUint16Array

Constructors

new UnalignedUint16Array()

new UnalignedUint16Array(maxLength: number): UnalignedUint16Array

Parameters

ParameterType
maxLengthnumber

Returns

UnalignedUint16Array

Defined in

UnalignedUint16Array.ts:20

Properties

#bitLength

private #bitLength: number = 0

Defined in

UnalignedUint16Array.ts:16


#buffer

private #buffer: Uint16Array

Defined in

UnalignedUint16Array.ts:15


#wordIndex

private #wordIndex: number = 0

Defined in

UnalignedUint16Array.ts:17


#wordLength

private #wordLength: number = 0

Defined in

UnalignedUint16Array.ts:18

Accessors

bitLength

Get Signature

get bitLength(): number

Returns

number

Defined in

UnalignedUint16Array.ts:40


length

Get Signature

get length(): number

Returns

number

Defined in

UnalignedUint16Array.ts:36


maxBitLength

Get Signature

get maxBitLength(): number

Returns

number

Defined in

UnalignedUint16Array.ts:32


maxLength

Get Signature

get maxLength(): number

Returns

number

Defined in

UnalignedUint16Array.ts:28

Methods

#bufferRead16()

private #bufferRead16(ptr: Pointer): void

Parameters

ParameterType
ptrPointer

Returns

void

Defined in

UnalignedUint16Array.ts:236


#bufferRead32()

private #bufferRead32(ptr: Pointer): void

Parameters

ParameterType
ptrPointer

Returns

void

Defined in

UnalignedUint16Array.ts:241


#bufferRead64()

private #bufferRead64(ptr: Pointer): void

Parameters

ParameterType
ptrPointer

Returns

void

Defined in

UnalignedUint16Array.ts:248


#bufferWrite16()

private #bufferWrite16(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:275


#readBit()

private #readBit(pointer: Pointer): number

Parameters

ParameterType
pointerPointer

Returns

number

Defined in

UnalignedUint16Array.ts:215


#readByte()

private #readByte(ptr: Pointer): number

Parameters

ParameterType
ptrPointer

Returns

number

Defined in

UnalignedUint16Array.ts:223


#writeBit()

private #writeBit(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:259


at()

at(index: number): undefined | number

Parameters

ParameterType
indexnumber

Returns

undefined | number

Defined in

UnalignedUint16Array.ts:24


readBigInt32()

readBigInt32(offset: PointerLike): bigint

Parameters

ParameterType
offsetPointerLike

Returns

bigint

Defined in

UnalignedUint16Array.ts:172


readBigInt64()

readBigInt64(offset: PointerLike): bigint

Parameters

ParameterType
offsetPointerLike

Returns

bigint

Defined in

UnalignedUint16Array.ts:182


readBigUint32()

readBigUint32(offset: PointerLike): bigint

Parameters

ParameterType
offsetPointerLike

Returns

bigint

Defined in

UnalignedUint16Array.ts:177


readBigUint64()

readBigUint64(offset: PointerLike): bigint

Parameters

ParameterType
offsetPointerLike

Returns

bigint

Defined in

UnalignedUint16Array.ts:187


readBit()

readBit(offset: PointerLike): 0 | 1

Parameters

ParameterType
offsetPointerLike

Returns

0 | 1

Defined in

UnalignedUint16Array.ts:104


readFloat32()

readFloat32(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:192


readFloat64()

readFloat64(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:197


readInt16()

readInt16(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:143


readInt2()

readInt2(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:109


readInt32()

readInt32(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:154


readInt4()

readInt4(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:121


readInt64()

readInt64(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:164


readInt8()

readInt8(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:132


readUint16()

readUint16(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:149


readUint2()

readUint2(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:116


readUint32()

readUint32(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:159


readUint4()

readUint4(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:127


readUint64()

readUint64(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:168


readUint8()

readUint8(offset: PointerLike): number

Parameters

ParameterType
offsetPointerLike

Returns

number

Defined in

UnalignedUint16Array.ts:138


toArray()

toArray(): Uint16Array

Returns

Uint16Array

Defined in

UnalignedUint16Array.ts:211


toString()

toString(): string

Returns

string

Defined in

UnalignedUint16Array.ts:202


writeBigInt32()

writeBigInt32(value: bigint): void

Parameters

ParameterType
valuebigint

Returns

void

Defined in

UnalignedUint16Array.ts:76


writeBigInt64()

writeBigInt64(value: bigint): void

Parameters

ParameterType
valuebigint

Returns

void

Defined in

UnalignedUint16Array.ts:82


writeBit()

writeBit(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:44


writeFloat32()

writeFloat32(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:90


writeFloat64()

writeFloat64(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:96


writeInt16()

writeInt16(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:63


writeInt2()

writeInt2(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:48


writeInt32()

writeInt32(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:67


writeInt4()

writeInt4(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:53


writeInt64()

writeInt64(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:72


writeInt8()

writeInt8(value: number): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

UnalignedUint16Array.ts:58


from()

static from(value: string | UnalignedUint16Array): UnalignedUint16Array

Parameters

ParameterType
valuestring | UnalignedUint16Array

Returns

UnalignedUint16Array

Defined in

UnalignedUint16Array.ts:303