allocate

fun Memory.Companion.allocate(length: Int): Memory
fun Memory.Companion.allocate(length: Int): Memory

Allocates the most effective platform-specific memory.

js
fun Memory.Companion.allocate(length: Int): Memory

Allocates memory based on a DataView.

fun Memory.Companion.allocate(length: Int): Memory

Allocates memory based on a ByteBuffer.

Sources

common source
Link copied to clipboard
js source
Link copied to clipboard
jvm source
Link copied to clipboard
native source
Link copied to clipboard