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
- http://tools.ietf.org/html/rfc1951 - RFC that this implementation is based on
- http://www.gzip.org/zlib/rfc-deflate.html - simplified version of RFC 1951 used as a reference
- http://svn.ghostscript.com/ghostscript/trunk/gs/zlib/contrib/puff/puff.c - Much of this code is based on the puff.c implementation found here
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. |