Пример #1
0
        /// <summary>
        /// Remove the database entry (if any) for "key".
        /// It is not an error if "key" did not exist in the database.
        /// Note: consider setting new WriteOptions{ Sync = true }.
        /// </summary>
        public void Delete(byte[] key, WriteOptions options)
        {
            IntPtr error;

            LevelDBInterop.leveldb_delete(this.Handle, options.Handle, key, (IntPtr)key.LongLength, out error);
            Throw(error);
        }
Пример #2
0
 /// <summary>
 /// Remove the database entry (if any) for "key".
 /// It is not an error if "key" did not exist in the database.
 /// </summary>
 public void Delete(Byte[] key, WriteOptions options)
 {
     LevelDBInterop.leveldb_delete(this.Handle, options.Handle, key, (IntPtr)key.Length, out IntPtr error);
     LevelDBException.Check(error);
     GC.KeepAlive(options);
     GC.KeepAlive(this);
 }
Пример #3
0
        public void Delete(WriteOptions options, Slice key)
        {
            IntPtr error;

            LevelDBInterop.leveldb_delete(Handle, options.Handle, key.buffer, (IntPtr)key.buffer.Length, out error);
            LevelDBException.Check(error);
            GC.KeepAlive(options);
            GC.KeepAlive(this);
        }