MCPcopy Create free account
hub / github.com/TechHara/gunzip / CodeBook

Class CodeBook

src/codebook.rs:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4pub const MAX_LL_SYMBOL: u32 = 288;
5
6pub struct CodeBook {
7 pub tree: Vec<(u32, u32)>, // bitcode, length
8 max_length: u32,
9}
10
11impl CodeBook {
12 pub fn new(lengths: impl IntoIterator<Item = u32>, len: usize) -> Result<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected