I'm trying to implement such function in K/N, cinterop generated first signature, but looks like it clear memory of pointers passed into it, I see that I can make them just NativePtr, but than it's hard to travers passed structs. How to instruct K/N to not clear passed ptrs?
d
Dominaezzz
07/20/2019, 11:23 AM
You want
CPointer<....>?
instead of
CValuesRef<...>?
.
Dominaezzz
07/20/2019, 11:24 AM
Also,
COpaquePointer
instead of
CValuesRef<*>
.
Dominaezzz
07/20/2019, 11:25 AM
Avoid declaring
CValuesRef
yourself unless you know exactly what you're doing.