StableRef
inline class StableRef<out T : Any>
This class provides a way to create a stable handle to any Kotlin object. After converting to CPointer it can be safely passed to native code e.g. to be received in a Kotlin callback.
Properties
value
val value: COpaquePointer
Functions
asCPointer
Converts the handle to C pointer.
fun asCPointer(): COpaquePointer
dispose
Disposes the handle. It must not be used after that.
fun dispose()