Dart_FileReadCallback typedef

Dart_FileReadCallback = Pointer<NativeFunction<Void Function(Pointer<Pointer<Uint8>> data, Pointer<IntPtr> file_length, Pointer<Void> stream)>>

Read contents of file.

Callback provided by the embedder for file operations. If the embedder does not allow file operations this callback can be NULL.

\param data Buffer allocated in the callback into which the contents of the file are read into. It is the responsibility of the caller to free this buffer. \param file_length A variable into which the length of the file is returned. In the case of an error this value would be -1. \param stream Handle to the opened file.

Implementation

typedef Dart_FileReadCallback = ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Pointer<ffi.Uint8>> data, ffi.Pointer<ffi.IntPtr> file_length, ffi.Pointer<ffi.Void> stream)>>;