Int16Array

JS
1.1
open class Int16Array : ArrayBufferView
(source)

Exposes the JavaScript Int16Array to Kotlin

Constructors

JS
1.1

<init>

Int16Array(length: Int)
Int16Array(array: Int16Array)
Int16Array(array: Array<Short>)
Int16Array(
    buffer: ArrayBuffer,
    byteOffset: Int = definedExternally,
    length: 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
JS
1.1

length

open val length: Int

Functions

JS
1.1

set

fun set(array: Int16Array, offset: Int = definedExternally)
fun set(array: Array<Short>, offset: Int = definedExternally)
JS
1.1

subarray

fun subarray(start: Int, end: Int): Int16Array

Companion Object Properties

JS
1.1

BYTES_PER_ELEMENT

val BYTES_PER_ELEMENT: Int

Extension Functions

JS
1.1

get

operator fun Int16Array.get(index: Int): Short
JS
1.1

set

operator fun Int16Array.set(index: Int, value: Short)