materializeFfiBytes function
Materializes FFI bytes using the same zero-copy policy as callWithBuffer.
Implementation
Uint8List materializeFfiBytes(
ffi.Pointer<ffi.Uint8> buf,
int length, {
required bool transferOwnership,
required bool allowZeroCopy,
}) =>
_materializeFfiBytes(
buf,
length,
transferOwnership: transferOwnership,
allowZeroCopy: allowZeroCopy,
);