DataView

open external class DataView : ArrayBufferView (source)

Platform and version requirements: JS

Exposes the JavaScript DataView to Kotlin

Constructors

<init>

DataView(
    buffer: ArrayBuffer,
    byteOffset: Int = definedExternally,
    byteLength: Int = definedExternally)

Exposes the JavaScript DataView to Kotlin

Properties

buffer

open val buffer: ArrayBuffer

byteLength

open val byteLength: Int

byteOffset

open val byteOffset: Int

Functions

getFloat32

fun getFloat32(
    byteOffset: Int,
    littleEndian: Boolean = definedExternally
): Float

getFloat64

fun getFloat64(
    byteOffset: Int,
    littleEndian: Boolean = definedExternally
): Double

getInt16

fun getInt16(
    byteOffset: Int,
    littleEndian: Boolean = definedExternally
): Short

getInt32

fun getInt32(
    byteOffset: Int,
    littleEndian: Boolean = definedExternally
): Int

getInt8

fun getInt8(byteOffset: Int): Byte

getUint16

fun getUint16(
    byteOffset: Int,
    littleEndian: Boolean = definedExternally
): Short

getUint32

fun getUint32(
    byteOffset: Int,
    littleEndian: Boolean = definedExternally
): Int

getUint8

fun getUint8(byteOffset: Int): Byte

setFloat32

fun setFloat32(
    byteOffset: Int,
    value: Float,
    littleEndian: Boolean = definedExternally)

setFloat64

fun setFloat64(
    byteOffset: Int,
    value: Double,
    littleEndian: Boolean = definedExternally)

setInt16

fun setInt16(
    byteOffset: Int,
    value: Short,
    littleEndian: Boolean = definedExternally)

setInt32

fun setInt32(
    byteOffset: Int,
    value: Int,
    littleEndian: Boolean = definedExternally)

setInt8

fun setInt8(byteOffset: Int, value: Byte)

setUint16

fun setUint16(
    byteOffset: Int,
    value: Short,
    littleEndian: Boolean = definedExternally)

setUint32

fun setUint32(
    byteOffset: Int,
    value: Int,
    littleEndian: Boolean = definedExternally)

setUint8

fun setUint8(byteOffset: Int, value: Byte)