Skip to main content

offload

Function offload 

Source
pub fn offload(
    bytes: &[u8],
    cap_bytes: u64,
    site: &mut OffloadSite<'_>,
) -> Result<OffloadRecord, AxError>
Expand description

Shrinks bytes to at most cap_bytes. Callers only come here for lossy cases (len > cap); a lossless call is refused — invariant 3 says only lossy transforms may store.