pub type Dart_FileReadCallback = Option<unsafe extern "C" fn(data: *mut *mut u8, file_length: *mut isize, stream: *mut c_void)>;
Expand description

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.

Aliased Type§

enum Dart_FileReadCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut *mut u8, _: *mut isize, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut *mut u8, _: *mut isize, _: *mut c_void))

Some value of type T.