Esempio n. 1
0
 protected override void FreeUnManagedObjects()
 {
     if (Handle != default)
     {
         LevelDbInterop.leveldb_options_destroy(Handle);
     }
 }
Esempio n. 2
0
 protected override void FreeUnManagedObjects()
 {
     LevelDbInterop.leveldb_env_destroy(Handle);
 }
Esempio n. 3
0
 public Env()
 {
     Handle = LevelDbInterop.leveldb_create_default_env();
 }
Esempio n. 4
0
 public WriteOptions()
 {
     Handle = LevelDbInterop.leveldb_writeoptions_create();
 }
Esempio n. 5
0
 public ReadOptions()
 {
     Handle = LevelDbInterop.leveldb_readoptions_create();
 }
Esempio n. 6
0
 /// <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);
 }
Esempio n. 7
0
 public Options()
 {
     Handle = LevelDbInterop.leveldb_options_create();
 }