does someone know how to replace Ptr{Ptr{Cint}} by a Ref based solution?

Example code is:

Definition of C function is here:



The code looks correct as is. You can replace the array by a Ref of the same eltype for performance.

Hm ok. The actual issue is that mmap is not working on Windows. and I thought that this might be the root cause.


If anything, incorrect use of Ptr/Ref is rarely platform dependent.

ok thanks. Then its beyond what I can investigate.