I'm trying to implement such function in K/N, cint...
# kotlin-native
i
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
You want
CPointer<....>?
instead of
CValuesRef<...>?
.
Also,
COpaquePointer
instead of
CValuesRef<*>
.
Avoid declaring
CValuesRef
yourself unless you know exactly what you're doing.
i
Thanks, that help.