Aaron Todd
09/30/2020, 5:38 PMByteArray backed by native C memory without a copy in Kotlin/Native?Dominaezzz
09/30/2020, 8:15 PMusePinned ?travis
09/30/2020, 10:22 PMusePinned is the common example, but it involves a memory copy.
https://stackoverflow.com/a/58521109
Wondering if there is something similar to Javascript interop (whereas a ByteArray is transparently mapped to a Javascript Int8Array)?
https://kotlinlang.org/docs/reference/js-to-kotlin-interop.html#representing-kotlin-types-in-javascriptAaron Todd
10/01/2020, 12:35 PMBuffer interface and then wrap the native memory. Little more work but should achieve what I want.