Companion

object Companion

Extensions

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.

Link copied to clipboard
expect fun Memory.Companion.wrap(array: ByteArray): 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.

actual fun Memory.Companion.wrap(array: ByteArray): 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.

actual fun Memory.Companion.wrap(array: ByteArray): 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.

actual fun Memory.Companion.wrap(array: ByteArray): 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.

Sources

Link copied to clipboard