Int16Array

open external class Int16Array : ArrayBufferView

Exposes the JavaScript Int16Array to Kotlin

Constructors

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

Types

Companion
Link copied to clipboard
object Companion

Functions

set
Link copied to clipboard
fun set(array: Array<Short>, offset: Int = definedExternally)
fun set(array: Int16Array, offset: Int = definedExternally)
subarray
Link copied to clipboard
fun subarray(start: Int, end: Int): Int16Array

Properties

buffer
Link copied to clipboard
open override val buffer: ArrayBuffer
byteLength
Link copied to clipboard
open override val byteLength: Int
byteOffset
Link copied to clipboard
open override val byteOffset: Int
length
Link copied to clipboard
open val length: Int

Extensions

get
Link copied to clipboard
inline operator fun Int16Array.get(index: Int): Short
set
Link copied to clipboard
inline operator fun Int16Array.set(index: Int, value: Short)