Skip to main content

compress_to_vec_with_path

Function compress_to_vec_with_path 

Source
pub fn compress_to_vec_with_path<R: Read>(
    source: R,
    path: &Path,
    level: CompressionLevel,
) -> Vec<u8> ⓘ
Available on crate feature std only.
Expand description

Convenience function to compress some source into a Vec using a path-based file-type hint.