[][src]Function deflate::deflate_bytes_gzip

pub fn deflate_bytes_gzip(input: &[u8]) -> Vec<u8>

Compress the given slice of bytes with DEFLATE compression, including a gzip header and trailer, using the default compression level, and a gzip header with default values.

Returns a Vec<u8> of the compressed data.

Examples

use deflate::deflate_bytes_gzip;
let data = b"This is some test data";
let compressed_data = deflate_bytes_gzip(data);