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.