protected override void FreeUnManagedObjects() { if (Handle != default) { LevelDbInterop.leveldb_options_destroy(Handle); } }
protected override void FreeUnManagedObjects() { LevelDbInterop.leveldb_env_destroy(Handle); }
public Env() { Handle = LevelDbInterop.leveldb_create_default_env(); }
public WriteOptions() { Handle = LevelDbInterop.leveldb_writeoptions_create(); }
public ReadOptions() { Handle = LevelDbInterop.leveldb_readoptions_create(); }
/// <summary> /// Create a new cache with a fixed size capacity. This implementation /// of Cache uses a LRU eviction policy. /// </summary> public Cache(int capacity) { Handle = LevelDbInterop.leveldb_cache_create_lru(capacity); }
public Options() { Handle = LevelDbInterop.leveldb_options_create(); }