pub fn deflate_bytes_conf<O: Into<CompressionOptions>>(
input: &[u8],
options: O,
) -> Vec<u8> ⓘ
Expand description
Compress the given slice of bytes with DEFLATE compression.
Returns a Vec<u8>
of the compressed data.
§Examples
use deflate::{deflate_bytes_conf, Compression};
let data = b"This is some test data";
let compressed_data = deflate_bytes_conf(data, Compression::Best);