Int32Array

open external class Int32Array : ArrayBufferView (source)

Platform and version requirements: JS

Exposes the JavaScript Int32Array to Kotlin

Constructors

<init>

Int32Array(length: Int)
Int32Array(array: Int32Array)
Int32Array(array: Array<Int>)
Int32Array(
    buffer: ArrayBuffer,
    byteOffset: Int = definedExternally,
    length: Int = definedExternally)

Properties

buffer

open val buffer: ArrayBuffer

byteLength

open val byteLength: Int

byteOffset

open val byteOffset: Int

length

open val length: Int

Functions

set

fun set(array: Int32Array, offset: Int = definedExternally)
fun set(array: Array<Int>, offset: Int = definedExternally)

subarray

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

Companion Object Properties

BYTES_PER_ELEMENT

val BYTES_PER_ELEMENT: Int

Extension Functions

get

operator fun Int32Array.get(index: Int): Int

set

operator fun Int32Array.set(index: Int, value: Int)