DataView

external class DataView(val buffer: ArrayBuffer, val byteOffset: Int = definedExternally, val byteLength: Int = definedExternally) : ArrayBufferView(source)

Constructors

Link copied to clipboard
constructor(buffer: ArrayBuffer, byteOffset: Int = definedExternally, byteLength: Int = definedExternally)

Properties

Link copied to clipboard
open override val buffer: ArrayBuffer
Link copied to clipboard
open override val byteLength: Int
Link copied to clipboard
open override val byteOffset: Int

Functions

Link copied to clipboard
fun getFloat32(byteOffset: Int, littleEndian: Boolean = definedExternally): Float
Link copied to clipboard
fun getFloat64(byteOffset: Int, littleEndian: Boolean = definedExternally): Double
Link copied to clipboard
fun getInt16(byteOffset: Int, littleEndian: Boolean = definedExternally): Short
Link copied to clipboard
fun getInt32(byteOffset: Int, littleEndian: Boolean = definedExternally): Int
Link copied to clipboard
fun getInt8(byteOffset: Int): Byte
Link copied to clipboard
fun getUint16(byteOffset: Int, littleEndian: Boolean = definedExternally): Short
Link copied to clipboard
fun getUint32(byteOffset: Int, littleEndian: Boolean = definedExternally): Int
Link copied to clipboard
fun getUint8(byteOffset: Int): Byte
Link copied to clipboard
fun setFloat32(byteOffset: Int, value: Float, littleEndian: Boolean = definedExternally)
Link copied to clipboard
fun setFloat64(byteOffset: Int, value: Double, littleEndian: Boolean = definedExternally)
Link copied to clipboard
fun setInt16(byteOffset: Int, value: Short, littleEndian: Boolean = definedExternally)
Link copied to clipboard
fun setInt32(byteOffset: Int, value: Int, littleEndian: Boolean = definedExternally)
Link copied to clipboard
fun setInt8(byteOffset: Int, value: Byte)
Link copied to clipboard
fun setUint16(byteOffset: Int, value: Short, littleEndian: Boolean = definedExternally)
Link copied to clipboard
fun setUint32(byteOffset: Int, value: Int, littleEndian: Boolean = definedExternally)
Link copied to clipboard
fun setUint8(byteOffset: Int, value: Byte)