public void Put(LightningDatabase db, byte[] key, byte[] value, PutOptions options = PutOptions.None) { if (db == null) throw new ArgumentNullException(nameof(db)); mdb_put(_handle, db.Handle(), key, value, options); }
public static void Put <TKey, TValue>(this LightningTransaction txn, LightningDatabase db, TKey key, TValue value, PutOptions options = PutOptions.None) { var keyBytes = db.ToBytes(key); var valueBytes = db.ToBytes(value); txn.Put(db, keyBytes, valueBytes, options); }