DataView

@JSGlobal("DataView") @native @JSType class DataView extends StObject with DataView
Companion
object
trait DataView
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(buffer: ArrayBufferLike)
def this(buffer: ArrayBufferLike, byteOffset: Double)
def this(buffer: ArrayBufferLike, byteOffset: Double, byteLength: Double)
def this(buffer: ArrayBufferLike, byteOffset: Unit, byteLength: Double)

Inherited methods

def getBigInt64(byteOffset: Double, littleEndian: Boolean): BigInt
Inherited from
DataView
def getBigInt64(byteOffset: Double): BigInt

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getBigUint64(byteOffset: Double, littleEndian: Boolean): BigInt
Inherited from
DataView
def getBigUint64(byteOffset: Double): BigInt

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getFloat32(byteOffset: Double, littleEndian: Boolean): Double
Inherited from
DataView
def getFloat32(byteOffset: Double): Double

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getFloat64(byteOffset: Double, littleEndian: Boolean): Double
Inherited from
DataView
def getFloat64(byteOffset: Double): Double

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getInt16(byteOffset: Double, littleEndian: Boolean): Double
Inherited from
DataView
def getInt16(byteOffset: Double): Double

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getInt32(byteOffset: Double, littleEndian: Boolean): Double
Inherited from
DataView
def getInt32(byteOffset: Double): Double

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getInt8(byteOffset: Double): Double

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getUint16(byteOffset: Double, littleEndian: Boolean): Double
Inherited from
DataView
def getUint16(byteOffset: Double): Double

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getUint32(byteOffset: Double, littleEndian: Boolean): Double
Inherited from
DataView
def getUint32(byteOffset: Double): Double

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def getUint8(byteOffset: Double): Double

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.

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.

Value Params
byteOffset

The place in the buffer at which the value should be retrieved.

Inherited from
DataView
def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def setBigInt64(byteOffset: Double, value: BigInt, littleEndian: Boolean): Unit
Inherited from
DataView
def setBigInt64(byteOffset: Double, value: BigInt): Unit

Stores a BigInt64 value at the specified byte offset from the start of the view.

Stores a BigInt64 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

littleEndian

If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.

value

The value to set.

Inherited from
DataView
def setBigUint64(byteOffset: Double, value: BigInt, littleEndian: Boolean): Unit
Inherited from
DataView
def setBigUint64(byteOffset: Double, value: BigInt): Unit

Stores a BigUint64 value at the specified byte offset from the start of the view.

Stores a BigUint64 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

littleEndian

If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.

value

The value to set.

Inherited from
DataView
def setFloat32(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
Inherited from
DataView
def setFloat32(byteOffset: Double, value: Double): Unit

Stores an Float32 value at the specified byte offset from the start of the view.

Stores an Float32 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

littleEndian

If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.

value

The value to set.

Inherited from
DataView
def setFloat64(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
Inherited from
DataView
def setFloat64(byteOffset: Double, value: Double): Unit

Stores an Float64 value at the specified byte offset from the start of the view.

Stores an Float64 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

littleEndian

If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.

value

The value to set.

Inherited from
DataView
def setInt16(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
Inherited from
DataView
def setInt16(byteOffset: Double, value: Double): Unit

Stores an Int16 value at the specified byte offset from the start of the view.

Stores an Int16 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

littleEndian

If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.

value

The value to set.

Inherited from
DataView
def setInt32(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
Inherited from
DataView
def setInt32(byteOffset: Double, value: Double): Unit

Stores an Int32 value at the specified byte offset from the start of the view.

Stores an Int32 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

littleEndian

If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.

value

The value to set.

Inherited from
DataView
def setInt8(byteOffset: Double, value: Double): Unit

Stores an Int8 value at the specified byte offset from the start of the view.

Stores an Int8 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

value

The value to set.

Inherited from
DataView
def setUint16(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
Inherited from
DataView
def setUint16(byteOffset: Double, value: Double): Unit

Stores an Uint16 value at the specified byte offset from the start of the view.

Stores an Uint16 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

littleEndian

If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.

value

The value to set.

Inherited from
DataView
def setUint32(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
Inherited from
DataView
def setUint32(byteOffset: Double, value: Double): Unit

Stores an Uint32 value at the specified byte offset from the start of the view.

Stores an Uint32 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

littleEndian

If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.

value

The value to set.

Inherited from
DataView
def setUint8(byteOffset: Double, value: Double): Unit

Stores an Uint8 value at the specified byte offset from the start of the view.

Stores an Uint8 value at the specified byte offset from the start of the view.

Value Params
byteOffset

The place in the buffer at which the value should be set.

value

The value to set.

Inherited from
DataView
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Inherited fields

val buffer: ArrayBuffer
Inherited from
DataView
val byteLength: Double
Inherited from
DataView
val byteOffset: Double
Inherited from
DataView
@JSName
val toStringTag: String
Inherited from
DataView