예제 #1
0
 public WriteBatch Put(byte[] key, byte[] value, int length)
 {
     LevelDBInterop.leveldb_writebatch_put(Handle, key, (IntPtr)key.Length, value, (IntPtr)length);
     return(this);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 public void Put(Slice key, Slice value)
 {
     LevelDBInterop.leveldb_writebatch_put(Handle, key.buffer, (IntPtr)key.buffer.Length, value.buffer, (IntPtr)value.buffer.Length);
 }