Class: UnalignedUint16Array
Constructors
new UnalignedUint16Array()
new UnalignedUint16Array(
maxLength
:number
):UnalignedUint16Array
Parameters
Parameter | Type |
---|---|
maxLength | number |
Returns
Defined in
Properties
#bitLength
private
#bitLength:number
=0
Defined in
#buffer
private
#buffer:Uint16Array
Defined in
#wordIndex
private
#wordIndex:number
=0
Defined in
#wordLength
private
#wordLength:number
=0
Defined in
Accessors
bitLength
Get Signature
get bitLength():
number
Returns
number
Defined in
length
Get Signature
get length():
number
Returns
number
Defined in
maxBitLength
Get Signature
get maxBitLength():
number
Returns
number
Defined in
maxLength
Get Signature
get maxLength():
number
Returns
number
Defined in
Methods
#bufferRead16()
private
#bufferRead16(ptr
:Pointer
):void
Parameters
Parameter | Type |
---|---|
ptr | Pointer |
Returns
void
Defined in
#bufferRead32()
private
#bufferRead32(ptr
:Pointer
):void
Parameters
Parameter | Type |
---|---|
ptr | Pointer |
Returns
void
Defined in
#bufferRead64()
private
#bufferRead64(ptr
:Pointer
):void
Parameters
Parameter | Type |
---|---|
ptr | Pointer |
Returns
void
Defined in
#bufferWrite16()
private
#bufferWrite16(value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
#readBit()
private
#readBit(pointer
:Pointer
):number
Parameters
Parameter | Type |
---|---|
pointer | Pointer |
Returns
number
Defined in
#readByte()
private
#readByte(ptr
:Pointer
):number
Parameters
Parameter | Type |
---|---|
ptr | Pointer |
Returns
number
Defined in
#writeBit()
private
#writeBit(value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
at()
at(
index
:number
):undefined
|number
Parameters
Parameter | Type |
---|---|
index | number |
Returns
undefined
| number
Defined in
readBigInt32()
readBigInt32(
offset
:PointerLike
):bigint
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
bigint
Defined in
readBigInt64()
readBigInt64(
offset
:PointerLike
):bigint
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
bigint
Defined in
readBigUint32()
readBigUint32(
offset
:PointerLike
):bigint
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
bigint
Defined in
readBigUint64()
readBigUint64(
offset
:PointerLike
):bigint
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
bigint
Defined in
readBit()
readBit(
offset
:PointerLike
):0
|1
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
0
| 1
Defined in
readFloat32()
readFloat32(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readFloat64()
readFloat64(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readInt16()
readInt16(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readInt2()
readInt2(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readInt32()
readInt32(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readInt4()
readInt4(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readInt64()
readInt64(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readInt8()
readInt8(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readUint16()
readUint16(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readUint2()
readUint2(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readUint32()
readUint32(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readUint4()
readUint4(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readUint64()
readUint64(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
readUint8()
readUint8(
offset
:PointerLike
):number
Parameters
Parameter | Type |
---|---|
offset | PointerLike |
Returns
number
Defined in
toArray()
toArray():
Uint16Array
Returns
Defined in
toString()
toString():
string
Returns
string
Defined in
writeBigInt32()
writeBigInt32(
value
:bigint
):void
Parameters
Parameter | Type |
---|---|
value | bigint |
Returns
void
Defined in
writeBigInt64()
writeBigInt64(
value
:bigint
):void
Parameters
Parameter | Type |
---|---|
value | bigint |
Returns
void
Defined in
writeBit()
writeBit(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
writeFloat32()
writeFloat32(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
writeFloat64()
writeFloat64(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
writeInt16()
writeInt16(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
writeInt2()
writeInt2(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
writeInt32()
writeInt32(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
writeInt4()
writeInt4(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
writeInt64()
writeInt64(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
writeInt8()
writeInt8(
value
:number
):void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
from()
static
from(value
:string
|UnalignedUint16Array
):UnalignedUint16Array
Parameters
Parameter | Type |
---|---|
value | string | UnalignedUint16Array |