예제 #1
0
        public void Put(WriteOptions options, Slice key, Slice value)
        {
            IntPtr error;

            Native.leveldb_put(handle, options.handle, key.buffer, (UIntPtr)key.buffer.Length, value.buffer, (UIntPtr)value.buffer.Length, out error);
            NativeHelper.CheckError(error);
        }
예제 #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);
 }