1#[doc(hidden)]
2pub const MZ_ADLER32_INIT: u32 = 1;
3
4#[doc(hidden)]
5pub const MZ_DEFAULT_WINDOW_BITS: i32 = 15;
6
7pub const HUFFMAN_LENGTH_ORDER: [u8; 19] = [
8 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15,
9];
10
11#[doc(hidden)]
12#[cfg(not(feature = "simd"))]
13pub fn update_adler32(adler: u32, data: &[u8]) -> u32 {
14 let mut hash: Adler32 = adler::Adler32::from_checksum(sum:adler);
15 hash.write_slice(bytes:data);
16 hash.checksum()
17}
18
19#[doc(hidden)]
20#[cfg(feature = "simd")]
21pub fn update_adler32(adler: u32, data: &[u8]) -> u32 {
22 let mut hash = simd_adler32::Adler32::from_checksum(adler);
23 hash.write(data);
24 hash.finish()
25}
26