Function preflate_whole_into_container

Source
pub fn preflate_whole_into_container(
    config: PreflateConfig,
    compressed_data: &mut impl BufRead,
    write: &mut impl Write,
) -> Result<PreflateStats>
Expand description

Scans for multiple deflate streams in an arbitrary binary file, decompresses the streams and returns an uncompressed file that can then be recompressed using a better algorithm. This can then be passed back into recreate_whole_from_container to recreate the exact original file.

Note that the result is NOT compressed and has to be compressed by some other algorithm in order to see any savings.

This is a wrapper for PreflateContainerProcessor.