materializeFfiBytes function

Uint8List materializeFfiBytes(
  1. Pointer<Uint8> buf,
  2. int length, {
  3. required bool transferOwnership,
  4. required bool allowZeroCopy,
})

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,
    );