Uint32Array

open external class Uint32Array : ArrayBufferView(source)

Exposes the JavaScript Uint32Array to Kotlin

Since Kotlin

1.1
open external class Uint32Array : ArrayBufferView, JsAny(source)

Exposes the JavaScript Uint32Array to Kotlin

Since Kotlin

1.8

Constructors

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

Types

Link copied to clipboard
object Companion
Since Kotlin 1.1
object Companion
Since Kotlin 1.8

Properties

Link copied to clipboard
open override val buffer: ArrayBuffer
Since Kotlin 1.1
open override val buffer: ArrayBuffer
Since Kotlin 1.8
Link copied to clipboard
open override val byteLength: Int
Since Kotlin 1.1
open override val byteLength: Int
Since Kotlin 1.8
Link copied to clipboard
open override val byteOffset: Int
Since Kotlin 1.1
open override val byteOffset: Int
Since Kotlin 1.8
Link copied to clipboard
open val length: Int
Since Kotlin 1.1
open val length: Int
Since Kotlin 1.8

Functions

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

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8