DataView

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

Exposes the JavaScript DataView to Kotlin

Since Kotlin

1.1

Constructors

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

Properties

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

Functions

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