예제 #1
0
 protected override void FreeUnManagedObjects()
 {
     if (Handle != default)
     {
         LevelDbInterop.leveldb_options_destroy(Handle);
     }
 }
예제 #2
0
파일: Env.cs 프로젝트: windygu/actools
 protected override void FreeUnManagedObjects()
 {
     LevelDbInterop.leveldb_env_destroy(Handle);
 }
예제 #3
0
파일: Env.cs 프로젝트: windygu/actools
 public Env()
 {
     Handle = LevelDbInterop.leveldb_create_default_env();
 }
예제 #4
0
 public WriteOptions()
 {
     Handle = LevelDbInterop.leveldb_writeoptions_create();
 }
예제 #5
0
 public ReadOptions()
 {
     Handle = LevelDbInterop.leveldb_readoptions_create();
 }
예제 #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);
 }
예제 #7
0
 public Options()
 {
     Handle = LevelDbInterop.leveldb_options_create();
 }