rusty_zlib 0.1.4

Remade-With-Rust fork of zlib-rs: a memory-safe, pure-Rust zlib (deflate/inflate, zlib and gzip), measured and tuned for the MATA stack
Documentation
// Vendored from miniz_oxide 0.8.9 (src/shared.rs), https://github.com/Frommi/miniz_oxide
// Copyright (c) Frommi, oyvindln and miniz_oxide contributors. miniz_oxide is licensed
// "MIT OR Zlib OR Apache-2.0"; rusty_zlib uses it under the Zlib licence.
// rusty_zlib change: `update_adler32` uses rusty_zlib's own Adler-32 (`crate::adler32`) instead
// of the `adler2` crate. Same checksum; it only fills the zlib trailer.

#[doc(hidden)]
pub const MZ_ADLER32_INIT: u32 = 1;

#[doc(hidden)]
pub const MZ_DEFAULT_WINDOW_BITS: i32 = 15;

pub const HUFFMAN_LENGTH_ORDER: [u8; 19] = [
    16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15,
];

#[doc(hidden)]
pub fn update_adler32(adler: u32, data: &[u8]) -> u32 {
    crate::adler32::adler32(adler, data)
}