private leveldb_put ( |
||
db | ||
options | ||
key | byte | |
keylen | ||
val | byte | |
vallen | ||
errptr | ||
return | void |
public static extern void leveldb_put(IntPtr /* DB */ db, IntPtr /* WriteOptions*/ options, byte[] key, IntPtr keylen, byte[] val, IntPtr vallen,
out IntPtr errptr);
LevelDbInterop::leveldb_put ( |
/// <summary> /// Set the database entry for "key" to "value". /// Note: consider setting new WriteOptions{ Sync = true }. /// </summary> public void Put(byte[] key, byte[] value, WriteOptions options) { IntPtr error; LevelDbInterop.leveldb_put(Handle, options.Handle, key, (IntPtr)key.LongLength, value, (IntPtr)value.LongLength, out error); Throw(error); }