public WriteBatch Put(byte[] key, byte[] value, int length) { LevelDBInterop.leveldb_writebatch_put(Handle, key, (IntPtr)key.Length, value, (IntPtr)length); return(this); }
/// <summary> /// Store the mapping "key->value" in the database. /// </summary> public WriteBatch Put(Byte[] key, Byte[] value) { LevelDBInterop.leveldb_writebatch_put(this.Handle, key, (IntPtr)key.Length, value, (IntPtr)value.Length); return(this); }
public void Put(Slice key, Slice value) { LevelDBInterop.leveldb_writebatch_put(Handle, key.buffer, (IntPtr)key.buffer.Length, value.buffer, (IntPtr)value.buffer.Length); }