Type Definition gdal_sys::CPLVirtualMemCachePageCbk [] [src]

type CPLVirtualMemCachePageCbk = Option<unsafe extern "C" fn(ctxt: *mut CPLVirtualMem, nOffset: usize, pPageToFill: *mut c_void, nToFill: usize, pUserData: *mut c_void)>;

Callback triggered when a still unmapped page of virtual memory is accessed. The callback has the responsibility of filling the page with relevant values

@param ctxt virtual memory handle. @param nOffset offset of the page in the memory mapping. @param pPageToFill address of the page to fill. Note that the address might be a temporary location, and not at CPLVirtualMemGetAddr() + nOffset. @param nToFill number of bytes of the page. @param pUserData user data that was passed to CPLVirtualMemNew().