BufferCallback typedef
Callback function type for FFI buffer operations.
The callback receives a buffer pointer, buffer length, and output written pointer. Returns 0 on success, -2 if buffer needs to be resized, or other error code on failure.
Implementation
typedef BufferCallback = int Function(
ffi.Pointer<ffi.Uint8> buf,
int bufLen,
ffi.Pointer<ffi.Uint32> outWritten,
);