explode
A decompression implementation for the implode algorithm from the PKWARE Data Compression Library.
This implementation is based on blast.c
by Mark Adler,
distributed with zlib.
Examples
To decompress a block of bytes in memory, use explode
.
let bytes = vec!;
let result = explode?;
assert_eq!;
To decompress a File
or other type that implements Read
, use
ExplodeReader
.
use Read;
let mut reader = new;
let mut decompressed = vec!;
reader.read_to_end?;
// or other functions from Read
For more complicated uses that do not fit into these categories, use
Explode
.
License
Licensed under the MIT license. Unless stated otherwise, any contributions to this work will also be licensed this way, with no additional terms or conditions.