mdbFromUint8List function
Implementation
Pointer<MDB_val> mdbFromUint8List(Uint8List data) {
final key = ffi.calloc<Uint8>(data.length);
for (var index = 0; index < data.length; index++) {
key[index] = data[index];
}
final mdbValue = ffi.calloc<MDB_val>();
mdbValue.ref
..mv_size = data.length
..mv_data = key.cast<Void>();
return mdbValue;
}