Int8Array

open external class Int8Array : ArrayBufferView (source)

Platform and version requirements: JS

Exposes the JavaScript Int8Array to Kotlin

Constructors

<init>

Int8Array(length: Int)
Int8Array(array: Int8Array)
Int8Array(array: Array<Byte>)
Int8Array(
    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: Int8Array, offset: Int = definedExternally)
fun set(array: Array<Byte>, offset: Int = definedExternally)

subarray

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

Companion Object Properties

BYTES_PER_ELEMENT

val BYTES_PER_ELEMENT: Int

Extension Functions

get

operator fun Int8Array.get(index: Int): Byte

set

operator fun Int8Array.set(index: Int, value: Byte)