Module compress::zlib [] [src]

ZLIB Compression and Decompression. Requires zlib feature, enabled by default

This module contains an implementation of the ZLIB compression scheme. This compression format is based on an underlying DEFLATE-encoded stream.

Example

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

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

Related links

Structs

Decoder

Structure used to decode a ZLIB-encoded stream. The wrapped stream can be re-acquired through the unwrap() method.