Beispiel #1
0
 public void Put(WriteOptions options, Slice key, Slice value)
 {
     Native.leveldb_put(handle, options.handle, key.buffer, (UIntPtr)key.buffer.Length, value.buffer, (UIntPtr)value.buffer.Length, out IntPtr error);
     NativeHelper.CheckError(error);
 }
Beispiel #2
0
 public void Delete(WriteOptions options, Slice key)
 {
     Native.leveldb_delete(handle, options.handle, key.buffer, (UIntPtr)key.buffer.Length, out IntPtr error);
     NativeHelper.CheckError(error);
 }