Uint16Array

open external class Uint16Array : ArrayBufferView(source)

Exposes the JavaScript Uint16Array to Kotlin

Since Kotlin

1.1

Constructors

Link copied to clipboard
constructor(length: Int)
constructor(array: Uint16Array)
constructor(array: Array<Short>)
constructor(buffer: ArrayBuffer, byteOffset: Int = definedExternally, length: Int = definedExternally)

Types

Link copied to clipboard
object Companion
Since Kotlin 1.1

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
Link copied to clipboard
open val length: Int
Since Kotlin 1.1

Functions

Link copied to clipboard
inline operator fun Uint16Array.get(index: Int): Short
Since Kotlin 1.1
Link copied to clipboard
fun set(array: Array<Short>, offset: Int = definedExternally)
fun set(array: Uint16Array, offset: Int = definedExternally)
Since Kotlin 1.1
Link copied to clipboard
inline operator fun Uint16Array.set(index: Int, value: Short)
Since Kotlin 1.1
Link copied to clipboard
fun subarray(start: Int, end: Int): Uint16Array
Since Kotlin 1.1