DataView

JS
1.1
open class DataView : ArrayBufferView

Exposes the JavaScript DataView to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript DataView to Kotlin

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

Properties

JS
1.1

buffer

open val buffer: ArrayBuffer
JS
1.1

byteLength

open val byteLength: Int
JS
1.1

byteOffset

open val byteOffset: Int

Functions

JS
1.1

getFloat32

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

getFloat64

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

getInt16

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

getInt32

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

getInt8

fun getInt8(byteOffset: Int): Byte
JS
1.1

getUint16

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

getUint32

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

getUint8

fun getUint8(byteOffset: Int): Byte
JS
1.1

setFloat32

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

setFloat64

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

setInt16

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

setInt32

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

setInt8

fun setInt8(byteOffset: Int, value: Byte)
JS
1.1

setUint16

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

setUint32

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

setUint8

fun setUint8(byteOffset: Int, value: Byte)