Type Alias gdal_sys::CPLVirtualMemUnCachePageCbk
source · pub type CPLVirtualMemUnCachePageCbk = Option<unsafe extern "C" fn(ctxt: *mut CPLVirtualMem, nOffset: usize, pPageToBeEvicted: *const c_void, nToBeEvicted: usize, pUserData: *mut c_void)>;
Expand description
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().
Aliased Type§
enum CPLVirtualMemUnCachePageCbk {
None,
Some(unsafe extern "C" fn(_: *mut CPLVirtualMem, _: usize, _: *const c_void, _: usize, _: *mut c_void)),
}