Uint8Array

open external class Uint8Array : ArrayBufferView

Exposes the JavaScript Uint8Array to Kotlin

Constructors

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

Types

Companion
Link copied to clipboard
object Companion

Functions

set
Link copied to clipboard
fun set(array: Array<Byte>, offset: Int = definedExternally)
fun set(array: Uint8Array, offset: Int = definedExternally)
subarray
Link copied to clipboard
fun subarray(start: Int, end: Int): Uint8Array

Properties

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

Extensions

get
Link copied to clipboard
inline operator fun Uint8Array.get(index: Int): Byte
set
Link copied to clipboard
inline operator fun Uint8Array.set(index: Int, value: Byte)