Function yazi::decompress

source ·
pub fn decompress(
    buf: &[u8],
    format: Format
) -> Result<(Vec<u8>, Option<u32>), Error>
Expand description

Decompresses a buffer of the specified format into a vector.

On success, returns a vector containing the decompressed data and optionally an Adler-32 checksum if the source data was zlib encoded.