Interface DataView
Hierarchy
- DataView
Index
Properties
buffer
byteLength
byteOffset
Methods
getFloat32
-
Parameters
-
byteOffset: number
The place in the buffer at which the value should be retrieved.
-
Optional littleEndian: boolean
Returns number
-
getFloat64
-
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: boolean
Returns number
-
getInt16
-
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: boolean
Returns number
-
getInt32
-
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: boolean
Returns number
-
getInt8
-
Gets the Int8 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.
Returns number
-
getUint16
-
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: boolean
Returns number
-
getUint32
-
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: boolean
Returns number
-
getUint8
-
Gets the Uint8 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.
Returns number
-
setFloat32
-
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: boolean
If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
Returns void
-
setFloat64
-
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: boolean
If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
Returns void
-
setInt16
-
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: boolean
If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
Returns void
-
setInt32
-
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: boolean
If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
Returns void
-
setInt8
-
Stores an Int8 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.
Returns void
-
setUint16
-
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: boolean
If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
Returns void
-
setUint32
-
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: boolean
If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
Returns void
-
setUint8
-
Stores an Uint8 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.
Returns void
-
Generated using TypeDoc
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.