DataView : ArrayBufferView
ArrayBuffer
. Values can be read and stored at any byte offset without alignment constraints.Constructors
Creates a new DataView
for buffer
at the specified offset. If length
is not specified, buffer.byteLength - byteOffset
will be used.
Example:
RunResults:
Instance Methods
Returns a signed 64 bit integer out of this
at the specified offset. If littleEndian
is true
, the value will be read as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 7
).
Example:
RunResults:
Returns an unsigned 64 bit integer out of this
at the specified offset. If littleEndian
is true
, the value will be read as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 7
).
Example:
RunResults:
Returns a 32 bit floating point number out of this
at the specified offset. If littleEndian
is true
, the value will be read as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 3
).
Example:
RunResults:
Returns a 64 bit floating point number out of this
at the specified offset. If littleEndian
is true
, the value will be read as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 7
).
Example:
RunResults:
Returns a signed 16 bit integer out of this
at the specified offset. If littleEndian
is true
, the value will be read as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 1
).
Example:
RunResults:
Returns a signed 32 bit integer out of this
at the specified offset. If littleEndian
is true
, the value will be read as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 3
).
Example:
RunResults:
Returns an unsigned 16 bit integer out of this
at the specified offset. If littleEndian
is true
, the value will be read as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 1
).
Example:
RunResults:
Returns an unsigned 32 bit integer out of this
at the specified offset. If littleEndian
is true
, the value will be read as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 3
).
Example:
RunResults:
Stores a signed 64 bit integer into this
at the specified offset. If littleEndian
is true
, the value will be stored as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 7
).
Example:
RunResults:
Stores an unsigned 64 bit integer into this
at the specified offset. If littleEndian
is true
, the value will be stored as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 7
).
Example:
RunResults:
Converts value
to a 32 bit floating point number and stores it into this
at the specified offset. If littleEndian
is true
, the value will be stored as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 3
).
Example:
RunResults:
Stores value
as a 64 bit floating point number in this
at the specified offset. If littleEndian
is true
, the value will be stored as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 7
).
Example:
RunResults:
Stores a signed 16 bit integer into this
at the specified offset. If littleEndian
is true
, the value will be stored as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 1
).
Example:
RunResults:
Stores a signed 32 bit integer into this
at the specified offset. If littleEndian
is true
, the value will be stored as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 3
).
Example:
RunResults:
Stores an unsigned 16 bit integer into this
at the specified offset. If littleEndian
is true
, the value will be stored as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 1
).
Example:
RunResults:
Stores an unsigned 32 bit integer into this
at the specified offset. If littleEndian
is true
, the value will be stored as little endian (least significant byte is at byteOffset
and most significant at byteOffset + 3
).