DataView

@native @JSType trait DataView extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
class DataView

Value members

Concrete methods

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.

def getBigInt64(byteOffset: Double, littleEndian: Boolean): BigInt
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.

def getBigUint64(byteOffset: Double, littleEndian: Boolean): BigInt
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.

def getFloat32(byteOffset: Double, littleEndian: Boolean): Double
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.

def getFloat64(byteOffset: Double, littleEndian: Boolean): Double
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.

def getInt16(byteOffset: Double, littleEndian: Boolean): Double
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.

def getInt32(byteOffset: Double, littleEndian: Boolean): Double
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.

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.

def getUint16(byteOffset: Double, littleEndian: Boolean): Double
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.

def getUint32(byteOffset: Double, littleEndian: Boolean): Double
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.

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.

def setBigInt64(byteOffset: Double, value: BigInt, littleEndian: Boolean): Unit
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.

def setBigUint64(byteOffset: Double, value: BigInt, littleEndian: Boolean): Unit
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.

def setFloat32(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
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.

def setFloat64(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
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.

def setInt16(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
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.

def setInt32(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
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.

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.

def setUint16(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
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.

def setUint32(byteOffset: Double, value: Double, littleEndian: Boolean): Unit
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 methods

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 toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

val buffer: ArrayBuffer
val byteLength: Double
val byteOffset: Double
@JSName
val toStringTag: String