1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Sequence store for deferred literal/match encoding.
//!
//! Ported from libdeflate's `struct deflate_sequence` and related helpers.
//!
//! A "sequence" represents a run of literals followed by a match (or end-of-block).
//! Sequences are accumulated during parsing, then encoded all at once after
//! the block's Huffman codes have been computed.
/// Shift for the match length within `litrunlen_and_length`.
pub const SEQ_LENGTH_SHIFT: u32 = 23;
/// Mask for the literal run length within `litrunlen_and_length`.
pub const SEQ_LITRUNLEN_MASK: u32 = - 1;
/// A run of literals followed by a match or end-of-block.
pub