Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

decompress_from

Function decompress_from 

Source
pub fn decompress_from<F: FnMut() -> Option<u8>>(
    next: F,
    dst: &mut [u8],
) -> Option<usize>
Expand description

Streaming decompression: pull compressed bytes from next and write the decoded output into dst, stopping once dst is full. Returns the number of bytes produced, or None on a malformed stream (a back-reference before the start of output, or input exhausted early).

Only dst is used as history, so no separate window buffer is needed.