Skip to main content

Class: UnalignedUint16Array

Defined in: UnalignedUint16Array.ts:14

Constructors

new UnalignedUint16Array()

new UnalignedUint16Array(maxLength: number): UnalignedUint16Array

Defined in: UnalignedUint16Array.ts:20

Parameters

ParameterType
maxLengthnumber

Returns

UnalignedUint16Array

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

Defined in: UnalignedUint16Array.ts:40

Returns

number


length

Get Signature

get length(): number

Defined in: UnalignedUint16Array.ts:36

Returns

number


maxBitLength

Get Signature

get maxBitLength(): number

Defined in: UnalignedUint16Array.ts:32

Returns

number


maxLength

Get Signature

get maxLength(): number

Defined in: UnalignedUint16Array.ts:28

Returns

number

Methods

#bufferRead16()

private #bufferRead16(ptr: Pointer): void

Defined in: UnalignedUint16Array.ts:236

Parameters

ParameterType
ptrPointer

Returns

void


#bufferRead32()

private #bufferRead32(ptr: Pointer): void

Defined in: UnalignedUint16Array.ts:241

Parameters

ParameterType
ptrPointer

Returns

void


#bufferRead64()

private #bufferRead64(ptr: Pointer): void

Defined in: UnalignedUint16Array.ts:248

Parameters

ParameterType
ptrPointer

Returns

void


#bufferWrite16()

private #bufferWrite16(value: number): void

Defined in: UnalignedUint16Array.ts:275

Parameters

ParameterType
valuenumber

Returns

void


#readBit()

private #readBit(pointer: Pointer): number

Defined in: UnalignedUint16Array.ts:215

Parameters

ParameterType
pointerPointer

Returns

number


#readByte()

private #readByte(ptr: Pointer): number

Defined in: UnalignedUint16Array.ts:223

Parameters

ParameterType
ptrPointer

Returns

number


#writeBit()

private #writeBit(value: number): void

Defined in: UnalignedUint16Array.ts:259

Parameters

ParameterType
valuenumber

Returns

void


at()

at(index: number): undefined | number

Defined in: UnalignedUint16Array.ts:24

Parameters

ParameterType
indexnumber

Returns

undefined | number


readBigInt32()

readBigInt32(offset: PointerLike): bigint

Defined in: UnalignedUint16Array.ts:172

Parameters

ParameterType
offsetPointerLike

Returns

bigint


readBigInt64()

readBigInt64(offset: PointerLike): bigint

Defined in: UnalignedUint16Array.ts:182

Parameters

ParameterType
offsetPointerLike

Returns

bigint


readBigUint32()

readBigUint32(offset: PointerLike): bigint

Defined in: UnalignedUint16Array.ts:177

Parameters

ParameterType
offsetPointerLike

Returns

bigint


readBigUint64()

readBigUint64(offset: PointerLike): bigint

Defined in: UnalignedUint16Array.ts:187

Parameters

ParameterType
offsetPointerLike

Returns

bigint


readBit()

readBit(offset: PointerLike): 0 | 1

Defined in: UnalignedUint16Array.ts:104

Parameters

ParameterType
offsetPointerLike

Returns

0 | 1


readFloat32()

readFloat32(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:192

Parameters

ParameterType
offsetPointerLike

Returns

number


readFloat64()

readFloat64(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:197

Parameters

ParameterType
offsetPointerLike

Returns

number


readInt16()

readInt16(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:143

Parameters

ParameterType
offsetPointerLike

Returns

number


readInt2()

readInt2(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:109

Parameters

ParameterType
offsetPointerLike

Returns

number


readInt32()

readInt32(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:154

Parameters

ParameterType
offsetPointerLike

Returns

number


readInt4()

readInt4(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:121

Parameters

ParameterType
offsetPointerLike

Returns

number


readInt64()

readInt64(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:164

Parameters

ParameterType
offsetPointerLike

Returns

number


readInt8()

readInt8(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:132

Parameters

ParameterType
offsetPointerLike

Returns

number


readUint16()

readUint16(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:149

Parameters

ParameterType
offsetPointerLike

Returns

number


readUint2()

readUint2(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:116

Parameters

ParameterType
offsetPointerLike

Returns

number


readUint32()

readUint32(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:159

Parameters

ParameterType
offsetPointerLike

Returns

number


readUint4()

readUint4(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:127

Parameters

ParameterType
offsetPointerLike

Returns

number


readUint64()

readUint64(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:168

Parameters

ParameterType
offsetPointerLike

Returns

number


readUint8()

readUint8(offset: PointerLike): number

Defined in: UnalignedUint16Array.ts:138

Parameters

ParameterType
offsetPointerLike

Returns

number


toArray()

toArray(): Uint16Array

Defined in: UnalignedUint16Array.ts:211

Returns

Uint16Array


toString()

toString(): string

Defined in: UnalignedUint16Array.ts:202

Returns

string


writeBigInt32()

writeBigInt32(value: bigint): void

Defined in: UnalignedUint16Array.ts:76

Parameters

ParameterType
valuebigint

Returns

void


writeBigInt64()

writeBigInt64(value: bigint): void

Defined in: UnalignedUint16Array.ts:82

Parameters

ParameterType
valuebigint

Returns

void


writeBit()

writeBit(value: number): void

Defined in: UnalignedUint16Array.ts:44

Parameters

ParameterType
valuenumber

Returns

void


writeFloat32()

writeFloat32(value: number): void

Defined in: UnalignedUint16Array.ts:90

Parameters

ParameterType
valuenumber

Returns

void


writeFloat64()

writeFloat64(value: number): void

Defined in: UnalignedUint16Array.ts:96

Parameters

ParameterType
valuenumber

Returns

void


writeInt16()

writeInt16(value: number): void

Defined in: UnalignedUint16Array.ts:63

Parameters

ParameterType
valuenumber

Returns

void


writeInt2()

writeInt2(value: number): void

Defined in: UnalignedUint16Array.ts:48

Parameters

ParameterType
valuenumber

Returns

void


writeInt32()

writeInt32(value: number): void

Defined in: UnalignedUint16Array.ts:67

Parameters

ParameterType
valuenumber

Returns

void


writeInt4()

writeInt4(value: number): void

Defined in: UnalignedUint16Array.ts:53

Parameters

ParameterType
valuenumber

Returns

void


writeInt64()

writeInt64(value: number): void

Defined in: UnalignedUint16Array.ts:72

Parameters

ParameterType
valuenumber

Returns

void


writeInt8()

writeInt8(value: number): void

Defined in: UnalignedUint16Array.ts:58

Parameters

ParameterType
valuenumber

Returns

void


from()

static from(value: string | UnalignedUint16Array): UnalignedUint16Array

Defined in: UnalignedUint16Array.ts:303

Parameters

ParameterType
valuestring | UnalignedUint16Array

Returns

UnalignedUint16Array