mdb_cmp function
@brief Compare two data items according to a particular database.
This returns a comparison as if the two data items were keys in the
specified database.
@paramin
txn A transaction handle returned by #mdb_txn_begin()
@paramin
dbi A database handle returned by #mdb_dbi_open()
@paramin
a The first item to compare
@paramin
b The second item to compare
@return < 0 if a < b, 0 if a == b, > 0 if a > b
Implementation
@ffi.FfiNative<
ffi.Int Function(ffi.Pointer<MDB_txn>, MDB_dbi, ffi.Pointer<MDB_val>,
ffi.Pointer<MDB_val>)>('mdb_cmp')
external int mdb_cmp(
ffi.Pointer<MDB_txn> txn,
int dbi,
ffi.Pointer<MDB_val> a,
ffi.Pointer<MDB_val> b,
);