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.
Any StableRef should be manually disposed
Converts the handle to C pointer.
Disposes the handle. It must not be used after that.
Returns the object this handle was created for.
Thanks for your feedback!