Type Definition gdal_sys::CPLVirtualMemUnCachePageCbk [] [src]

type CPLVirtualMemUnCachePageCbk = Option<unsafe extern "C" fn(ctxt: *mut CPLVirtualMem, nOffset: usize, pPageToBeEvicted: *const c_void, nToBeEvicted: usize, pUserData: *mut c_void)>;

Callback triggered when a dirty mapped page is going to be freed. (saturation of cache, or termination of the virtual memory mapping).

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