Function deflate::deflate_bytes [−][src]
pub fn deflate_bytes(input: &[u8]) -> Vec<u8>
Expand description
Compress the given slice of bytes with DEFLATE compression using the default compression level.
Returns a Vec<u8>
of the compressed data.
Examples
use deflate::deflate_bytes; let data = b"This is some test data"; let compressed_data = deflate_bytes(data);