Type Alias ULFileSystemOpenFileCallback

Source
pub type ULFileSystemOpenFileCallback = Option<unsafe extern "C" fn(path: ULString, open_for_writing: bool) -> ULFileHandle>;
Expand description

The callback invoked when the FileSystem wants to open a file path for reading or writing. Return file handle on success, or ULInvalidFileHandle on failure.

@NOTE: As of this writing (v1.2), this function is only used for reading.

Aliased Type§

enum ULFileSystemOpenFileCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut C_String, _: bool) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut C_String, _: bool) -> i32)

Some value of type T.