Esempio n. 1
0
 public void Delete(WriteOptions options, byte[] key)
 {
     Native.leveldb_delete(handle, options.handle, key, (UIntPtr)key.Length, out IntPtr error);
     NativeHelper.CheckError(error);
 }
Esempio n. 2
0
 public void Put(WriteOptions options, byte[] key, byte[] value)
 {
     Native.leveldb_put(handle, options.handle, key, (UIntPtr)key.Length, value, (UIntPtr)value.Length, out IntPtr error);
     NativeHelper.CheckError(error);
 }
Esempio n. 3
0
 public void Write(WriteOptions options, WriteBatch write_batch)
 {
     Native.leveldb_write(handle, options.handle, write_batch.handle, out IntPtr error);
     NativeHelper.CheckError(error);
 }