예제 #1
0
 protected override void FreeUnManagedObjects()
 {
     LevelDBInterop.leveldb_writeoptions_destroy(Handle);
 }
예제 #2
0
파일: Cache.cs 프로젝트: Sphere10/Framework
 protected override void FreeUnManagedObjects()
 {
     LevelDBInterop.leveldb_cache_destroy(Handle);
 }
예제 #3
0
 public WriteOptions()
 {
     Handle = LevelDBInterop.leveldb_writeoptions_create();
 }
예제 #4
0
파일: Cache.cs 프로젝트: Sphere10/Framework
 /// <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((IntPtr)capacity);
 }