takeOwnership

fun takeOwnership(proxy: Proxy)

Transfers ownership of the memory to the MemoryCleaner.

When the associated Proxy object is garbage-collected, the memory will be released.

Parameters

proxy

The Proxy instance.