MCPcopy Create free account
hub / github.com/comaps/comaps / Decode

Method Decode

libs/coding/huffman.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22bool HuffmanCoder::Decode(Code const & code, uint32_t & symbol) const
23{
24 auto it = m_decoderTable.find(code);
25 if (it == m_decoderTable.end())
26 return false;
27 symbol = it->second;
28 return true;
29}
30
31void HuffmanCoder::BuildTables(Node * root, uint32_t path)
32{

Callers 1

TestDecodeFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

TestDecodeFunction · 0.36