public static extern void leveldb_put(IntPtr /* DB */ db, IntPtr /* WriteOptions*/ options, byte[] key, IntPtr keylen, byte[] val, IntPtr vallen, out IntPtr errptr);
/// <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); }