Type Alias gdal_sys::VSIFilesystemPluginAdviseReadCallback

source ·
pub type VSIFilesystemPluginAdviseReadCallback = Option<unsafe extern "C" fn(pFile: *mut c_void, nRanges: c_int, panOffsets: *const vsi_l_offset, panSizes: *const usize)>;
Expand description

This optional method is called when code plans to access soon one or several ranges in a file. Some file systems may be able to use this hint to for example asynchronously start such requests.

Offsets may be given in a non-increasing order, and may potentially overlap.

@param pFile File handle. @param nRanges Size of the panOffsets and panSizes arrays. @param panOffsets Array containing the start offset of each range. @param panSizes Array containing the size (in bytes) of each range. @since GDAL 3.7

Aliased Type§

enum VSIFilesystemPluginAdviseReadCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *const u64, _: *const usize)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: i32, _: *const u64, _: *const usize))

Some value of type T.