ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
HuffmanEncoder::Symbol Struct Reference

Description:

Information about the encoding of symbols. The symbol's value (between 0 and 255) is not included, but deduced from the objects' position in the symbol array found in field symbols.

Definition at line 46 of file huffman.hpp.

#include <huffman.hpp>

Public Field Index:

std::size_t frequency = 0
 The number of occurrences of the symbol.
 
alib::ShiftOpRHS wordLength = 0
 0: symbol not used, otherwise between 1 and 255.
 
uint32_t words [MAX_WORDS] = {0,0}
 The bitcode of the symbol.
 

Field Details:

◆ frequency

std::size_t frequency = 0

The number of occurrences of the symbol.

Definition at line 48 of file huffman.hpp.

◆ wordLength

alib::ShiftOpRHS wordLength = 0

0: symbol not used, otherwise between 1 and 255.

Definition at line 49 of file huffman.hpp.

◆ words

uint32_t words[MAX_WORDS] = {0,0}

The bitcode of the symbol.

Definition at line 50 of file huffman.hpp.


The documentation for this struct was generated from the following file: