Val is now passed to helpers directly instead of through extra pointer. (#31)
Co-authored-by: Zachary Levy <zachary@sunforge.is> Reviewed-on: #31
This commit was merged in pull request #31.
This commit is contained in:
Vendored
+1
-1
@@ -80,7 +80,7 @@ main :: proc() {
|
||||
data_val: mdb.Val
|
||||
mdb.panic_on_err(mdb.txn_begin(environment, nil, {}, &txn_handle))
|
||||
mdb.panic_on_err(mdb.get(txn_handle, db_handle, &key_val, &data_val))
|
||||
data_cpy := mdb.blittable_copy(&data_val, int)
|
||||
data_cpy := mdb.blittable_copy(data_val, int)
|
||||
mdb.panic_on_err(mdb.txn_commit(txn_handle))
|
||||
fmt.println("Get result:", data_cpy)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user