Is there any way how i can write bytes to a Native...
# kotlin-native
r
Is there any way how i can write bytes to a NativePtr?
Copy code
CPointerVarOf<COpaquePointer>(nativePtr)
gives me this Exception: Native interop types constructors must not be called directly I need a CValueRef<*> for memcpy
l
Not at my computer right now, but there should be an extension that converts nativePtr to Long, and one that converts Long to CPointer.
r
Thank you. You are right this exists and works great.