Uint8Array

JS
1.1
open class Uint8Array : ArrayBufferView
(source)

Exposes the JavaScript Uint8Array to Kotlin

Constructors

JS
1.1

<init>

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

Properties

JS
1.1

buffer

open val buffer: ArrayBuffer
JS
1.1

byteLength

open val byteLength: Int
JS
1.1

byteOffset

open val byteOffset: Int
JS
1.1

length

open val length: Int

Functions

JS
1.1

set

fun set(array: Uint8Array, offset: Int = definedExternally)
fun set(array: Array<Byte>, offset: Int = definedExternally)
JS
1.1

subarray

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

Companion Object Properties

JS
1.1

BYTES_PER_ELEMENT

val BYTES_PER_ELEMENT: Int

Extension Functions

JS
1.1

get

operator fun Uint8Array.get(index: Int): Byte
JS
1.1

set

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