Companion

Functions

Link copied to clipboard
expect fun Memory.Companion.allocate(length: Int): Memory

Allocates the most effective platform-specific memory.

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

Allocates memory based on a DataView.

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

Allocates memory based on a ByteBuffer.

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

Allocates the most effective platform-specific memory.

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

Allocates memory based on a DataView.

Link copied to clipboard

Wraps a Memory around existing ByteArray. This operation is unsafe since the array is not copied and could be mutated independently of the resulting Memory.

Wraps a Memory around existing ByteArray. This operation is unsafe since the array is not copied and could be mutated independently of the resulting Memory.

Wraps a Memory around existing ByteArray. This operation is unsafe since the array is not copied and could be mutated independently of the resulting Memory.

Wraps a Memory around existing ByteArray. This operation is unsafe since the array is not copied and could be mutated independently of the resulting Memory.

Wraps a Memory around existing ByteArray. This operation is unsafe since the array is not copied and could be mutated independently of the resulting Memory.