|
| | HuffmanCodec ()=default |
| template<class Freq> |
| | HuffmanCodec (Frequencies< Freq, Symbol > const &f) |
| template<class Freq> |
| void | build (Frequencies< Freq, Symbol > const &f) |
| template<class OutputByte> |
| void | encode (std::vector< Symbol > const &symbols, std::vector< OutputByte > &out) const |
| template<class InputByte> |
| std::vector< Symbol > | decode (std::vector< InputByte > const &data, std::size_t symbolCount) const |
| bool | hasSymbol (Symbol s) const |
| std::unordered_map< Symbol, std::vector< uint8_t > > const & | codeTable () const |
template<class Symbol>
class HuffmanCodec< Symbol >
A simple Huffman codec with byte-oriented bitstream.
This implementation avoids fixed-size state limits by emitting bits into a byte stream.
Definition at line 452 of file prefixcoder.hh.