pub type ULFileSystemOpenFileCallback = Option<unsafe extern "C" fn(path: ULString) -> ULBuffer>;
Expand description

Open file for reading and map it to a Buffer.

To minimize copies, you should map the requested file into memory and use ulCreateBuffer() to wrap the data pointer (unmapping should be performed in the destruction callback).

If the file was unable to be opened, you should return NULL for this value.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut C_String) -> *mut C_Buffer)

Some value of type T.