Jeff Lockhart
07/25/2022, 5:19 AMByteArray
and not `unpin()`ing it? Would this only prevent GC from relocating the memory, or would it cause a memory leak?
My issue is with returning a native pointer to an internal ByteArray
buffer as a stable reference, where the caller uses the pointer, but can't call unpin()
after doing so.Landry Norris
07/25/2022, 7:23 PMJeff Lockhart
07/25/2022, 8:08 PMclose()
function, which would guarantee the buffer gets released when closed.Landry Norris
07/25/2022, 8:10 PM