I don't think you can cast it to a seq since seqs are GC-managed.
let a = cast[ptr UncheckedArray[YOUR_TYPE]](your_pointer)
- working with pointers from C apis jackmott
- Re: working with pointers from C apis mratsim
I don't think you can cast it to a seq since seqs are GC-managed.
let a = cast[ptr UncheckedArray[YOUR_TYPE]](your_pointer)