Skip to main content

zlib_compress

Function zlib_compress 

Source
pub fn zlib_compress(input: &[u8]) -> Vec<u8> ⓘ
Expand description

Compresses bytes into a standard RFC 1950 zlib stream with Adler-32 trailer.

§Arguments

  • &[u8] - Uncompressed input bytes.

§Returns

  • Vec<u8> - Complete RFC 1950 zlib byte stream.