Module compress::flate [] [src]

DEFLATE Compression and Decompression. Requires flate feature, enabled by default

This module contains an implementation of the DEFLATE compression scheme. This format is often used as the underpinning of other compression formats.

Example

use compress::flate;
use std::fs::File;
use std::path::Path;

let stream = File::open(&Path::new("path/to/file.flate")).unwrap();
let mut decompressed = Vec::new();
flate::Decoder::new(stream).read_to_end(&mut decompressed);

Related links

Structs

Decoder

The structure that is used to decode an LZ4 data stream. This wraps an internal reader which is used as the source of all data.