Uint16Array

open external class Uint16Array : ArrayBufferView

Exposes the JavaScript Uint16Array to Kotlin

Constructors

Uint16Array
Link copied to clipboard
fun Uint16Array(length: Int)
Uint16Array
Link copied to clipboard
fun Uint16Array(array: Uint16Array)
Uint16Array
Link copied to clipboard
fun Uint16Array(array: Array<Short>)
Uint16Array
Link copied to clipboard
fun Uint16Array(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: Uint16Array, offset: Int = definedExternally)
subarray
Link copied to clipboard
fun subarray(start: Int, end: Int): Uint16Array

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 Uint16Array.get(index: Int): Short
set
Link copied to clipboard
inline operator fun Uint16Array.set(index: Int, value: Short)