Companion

object Companion

Extensions

allocate
Link copied to clipboard
common
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.
native
fun Memory.Companion.allocate(length: Int): Memory
Allocates the most effective platform-specific memory.
wrap
Link copied to clipboard
common
fun Memory.Companion.wrap(array: ByteArray): Memory
Wraps a Memory around existing ByteArray.
js
fun Memory.Companion.wrap(array: ByteArray): Memory
Wraps a Memory around existing ByteArray.
fun Memory.Companion.wrap(array: ByteArray): Memory
Wraps a Memory around existing ByteArray.
native
fun Memory.Companion.wrap(array: ByteArray): Memory
Wraps a Memory around existing ByteArray.

Sources

common source
Link copied to clipboard