pub fn deflate_bytes_zlib(input: &[u8]) -> Vec<u8> ⓘ
Expand description
Compress the given slice of bytes with DEFLATE compression, including a zlib header and trailer, using the default compression level.
Returns a Vec
Zlib dictionaries are not yet suppored.
§Examples
use deflate::deflate_bytes_zlib;
let data = b"This is some test data";
let compressed_data = deflate_bytes_zlib(data);