Uint8Array

open external class Uint8Array : ArrayBufferView(source)

Exposes the JavaScript Uint8Array to Kotlin

Since Kotlin

1.1

Constructors

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

Types

Link copied to clipboard
object Companion
Since Kotlin 1.1

Properties

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

Functions

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