Float32Array

open external class Float32Array : ArrayBufferView (source)

Platform and version requirements: JS

Exposes the JavaScript Float32Array to Kotlin

Constructors

<init>

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

subarray

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

Companion Object Properties

BYTES_PER_ELEMENT

val BYTES_PER_ELEMENT: Int

Extension Functions

get

operator fun Float32Array.get(index: Int): Float

set

operator fun Float32Array.set(index: Int, value: Float)