wrap

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

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