[][src]Function mupdf_sys::fz_store_scavenge

pub unsafe extern "C" fn fz_store_scavenge(
    ctx: *mut fz_context,
    size: usize,
    phase: *mut c_int
) -> c_int

Internal function used as part of the scavenging allocator; when we fail to allocate memory, before returning a failure to the caller, we try to scavenge space within the store by evicting at least 'size' bytes. The allocator then retries.

size: The number of bytes we are trying to have free.

phase: What phase of the scavenge we are in. Updated on exit.

Returns non zero if we managed to free any memory.