pub fn deflate(data: &[u8], level: u8) -> Vec<u8> ⓘExpand description
Compresses to a raw DEFLATE stream. level 0 stores the data; any other level runs the LZ77
search, with longer hash chains (more compression, more time) for higher levels up to 9, and
falls back to stored blocks if the fixed Huffman code would make the data larger (as it does
for random bytes).