Kris Wong
11/07/2019, 4:23 PMmmap as a CPointer<ByteVar> would cause a SIGBUS?Kris Wong
11/07/2019, 4:24 PMval bytes = ByteArray(Int.SIZE_BYTES)
bytes.setIntAt(0, newPos)
bytes.forEachIndexed { i: Int, byte: Byte ->
buffer[i] = byte
}Kris Wong
11/07/2019, 4:24 PMCOpaquePointer reinterpreted as CPointer<ByteVar>Kris Wong
11/07/2019, 4:34 PMKris Wong
11/07/2019, 4:34 PMKris Wong
11/07/2019, 4:50 PM