Function deflate::deflate_bytes_zlib_conf [−][src]
Expand description
Compress the given slice of bytes with DEFLATE compression, including a zlib header and trailer.
Returns a Vec<u8>
of the compressed data.
Zlib dictionaries are not yet suppored.
Examples
use deflate::{deflate_bytes_zlib_conf, Compression};
let data = b"This is some test data";
let compressed_data = deflate_bytes_zlib_conf(data, Compression::Best);