Uint8ClampedArray

JS
1.1
open class Uint8ClampedArray : ArrayBufferView
(source)

Exposes the JavaScript Uint8ClampedArray to Kotlin

Constructors

JS
1.1

<init>

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

subarray

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

Companion Object Properties

JS
1.1

BYTES_PER_ELEMENT

val BYTES_PER_ELEMENT: Int

Extension Functions

JS
1.1

get

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

set

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