All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.maryk.rocksdb.AbstractNativeReference.kt Maven / Gradle / Ivy

package maryk.rocksdb

/**
 * AbstractNativeReference is the base-class of all RocksDB classes that have
 * a pointer to a native C++ {@code rocksdb} object.
 *
 * AbstractNativeReference has the {@link AbstractNativeReference#dispose()}
 * method, which frees its associated C++ object.

* * This function should be called manually, however, if required it will be * called automatically during the regular Java GC process via * {@link AbstractNativeReference#finalize()}.

* * Note - Java can only see the long member variable (which is the C++ pointer * value to the native object), as such it does not know the real size of the * object and therefore may assign a low GC priority for it; So it is strongly * suggested that you manually dispose of objects when you are finished with * them. */ expect abstract class AbstractNativeReference : AutoCloseable




© 2015 - 2025 Weber Informatics LLC | Privacy Policy