hfhbd
07/05/2022, 4:51 PMrusshwolf
07/05/2022, 7:27 PMmemScoped {
val uByteVar = alloc<UByteVar>()
val pointer = uByteVar.ptr
pointer.pointed.value = 0u
// do stuff with pointer here
}
// It's not safe to hold onto a reference to pointer here
hfhbd
07/05/2022, 8:21 PMLandry Norris
07/05/2022, 8:49 PM