pub type Dart_FileOpenCallback = Option<unsafe extern "C" fn(name: *const c_char, write: bool) -> *mut c_void>;
Expand description

Opens a file for reading or writing.

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

\param name The name of the file to open. \param write A boolean variable which indicates if the file is to opened for writing. If there is an existing file it needs to truncated.

Aliased Type§

enum Dart_FileOpenCallback {
    None,
    Some(unsafe extern "C" fn(_: *const i8, _: bool) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const i8, _: bool) -> *mut c_void)

Some value of type T.