Interface DataView
[toStringTag]: string;
buffer: ArrayBuffer;
byteLength: number;
byteOffset: number;
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
getFloat32(byteOffset: number, littleEndian?: boolean): number;
getFloat64(byteOffset: number, littleEndian?: boolean): number;
getInt16(byteOffset: number, littleEndian?: boolean): number;
getInt32(byteOffset: number, littleEndian?: boolean): number;
getInt8(byteOffset: number): number;
getUint16(byteOffset: number, littleEndian?: boolean): number;
getUint32(byteOffset: number, littleEndian?: boolean): number;
getUint8(byteOffset: number): number;
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
setInt8(byteOffset: number, value: number): void;
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
setUint8(byteOffset: number, value: number): void;
}
Properties
Readonly
[toStringTag]
Readonly
buffer
Readonly
byteLength
Readonly
byteOffset
Methods
getBigInt64
getBigUint64
- get
Big (byteOffset, littleEndian?): bigintUint64 Gets the BigUint64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
Parameters
- byteOffset: number
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Returns bigint
- byteOffset: number
getFloat32
- get
Float32 (byteOffset, littleEndian?): number Gets the Float32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
Parameters
- byteOffset: number
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Returns number
- byteOffset: number
getFloat64
- get
Float64 (byteOffset, littleEndian?): number Gets the Float64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
Parameters
- byteOffset: number
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Returns number
- byteOffset: number
getInt16
- get
Int16 (byteOffset, littleEndian?): number Gets the Int16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
Parameters
- byteOffset: number
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Returns number
- byteOffset: number
getInt32
- get
Int32 (byteOffset, littleEndian?): number Gets the Int32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
Parameters
- byteOffset: number
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Returns number
- byteOffset: number
getInt8
getUint16
- get
Uint16 (byteOffset, littleEndian?): number Gets the Uint16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
Parameters
- byteOffset: number
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Returns number
- byteOffset: number
getUint32
- get
Uint32 (byteOffset, littleEndian?): number Gets the Uint32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
Parameters
- byteOffset: number
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Returns number
- byteOffset: number
getUint8
setBigInt64
- set
Big (byteOffset, value, littleEndian?): voidInt64 Stores a BigInt64 value at the specified byte offset from the start of the view.
Parameters
- byteOffset: number
The place in the buffer at which the value should be set.
- value: bigint
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Returns void
- byteOffset: number
setBigUint64
- set
Big (byteOffset, value, littleEndian?): voidUint64 Stores a BigUint64 value at the specified byte offset from the start of the view.
Parameters
- byteOffset: number
The place in the buffer at which the value should be set.
- value: bigint
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Returns void
- byteOffset: number
setFloat32
- set
Float32 (byteOffset, value, littleEndian?): void Stores an Float32 value at the specified byte offset from the start of the view.
Parameters
- byteOffset: number
The place in the buffer at which the value should be set.
- value: number
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Returns void
- byteOffset: number
setFloat64
- set
Float64 (byteOffset, value, littleEndian?): void Stores an Float64 value at the specified byte offset from the start of the view.
Parameters
- byteOffset: number
The place in the buffer at which the value should be set.
- value: number
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Returns void
- byteOffset: number
setInt16
- set
Int16 (byteOffset, value, littleEndian?): void Stores an Int16 value at the specified byte offset from the start of the view.
Parameters
- byteOffset: number
The place in the buffer at which the value should be set.
- value: number
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Returns void
- byteOffset: number
setInt32
- set
Int32 (byteOffset, value, littleEndian?): void Stores an Int32 value at the specified byte offset from the start of the view.
Parameters
- byteOffset: number
The place in the buffer at which the value should be set.
- value: number
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Returns void
- byteOffset: number
setInt8
setUint16
- set
Uint16 (byteOffset, value, littleEndian?): void Stores an Uint16 value at the specified byte offset from the start of the view.
Parameters
- byteOffset: number
The place in the buffer at which the value should be set.
- value: number
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Returns void
- byteOffset: number
setUint32
- set
Uint32 (byteOffset, value, littleEndian?): void Stores an Uint32 value at the specified byte offset from the start of the view.
Parameters
- byteOffset: number
The place in the buffer at which the value should be set.
- value: number
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Returns void
- byteOffset: number
Gets the BigInt64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.