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 from the resulting Memory.