For accessing SQLite, I had to use the following. ...
# kotlin-native
j
For accessing SQLite, I had to use the following.
Copy code
val ppDB = cValuesOf<sqlite3>(null)
sqlite3_open(filePath, ppDB)
...
val pDB = ppDB.getPointer(memScope).pointed.value
sqlite3_close(pDB)
Is there a plan to make interop pointers easier to grok? Maybe offer a language level */& operator like C?
o
we are discussing ways to simplify that with language designers
s
something as easy as c# would be awesome, ``IntPtr``, ValueType, and ``[StructLayout]`` ``out``