DataView

open class DataView(buffer: ArrayBuffer, byteOffset: Int, byteLength: Int) : ArrayBufferView, JsAny

Exposes the JavaScript DataView to Kotlin

Constructors

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

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): Float
Link copied to clipboard
fun getFloat64(byteOffset: Int, littleEndian: Boolean): Double
Link copied to clipboard
fun getInt16(byteOffset: Int, littleEndian: Boolean): Short
Link copied to clipboard
fun getInt32(byteOffset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun getInt8(byteOffset: Int): Byte
Link copied to clipboard
fun getUint16(byteOffset: Int, littleEndian: Boolean): Short
Link copied to clipboard
fun getUint32(byteOffset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun getUint8(byteOffset: Int): Byte
Link copied to clipboard
fun setFloat32(byteOffset: Int, value: Float, littleEndian: Boolean)
Link copied to clipboard
fun setFloat64(byteOffset: Int, value: Double, littleEndian: Boolean)
Link copied to clipboard
fun setInt16(byteOffset: Int, value: Short, littleEndian: Boolean)
Link copied to clipboard
fun setInt32(byteOffset: Int, value: Int, littleEndian: Boolean)
Link copied to clipboard
fun setInt8(byteOffset: Int, value: Byte)
Link copied to clipboard
fun setUint16(byteOffset: Int, value: Short, littleEndian: Boolean)
Link copied to clipboard
fun setUint32(byteOffset: Int, value: Int, littleEndian: Boolean)
Link copied to clipboard
fun setUint8(byteOffset: Int, value: Byte)