Crypto++
5.6.3
Free C++ class library of cryptographic schemes
|
Classes | |
struct | Code |
Public Types | |
typedef unsigned int | code_t |
typedef unsigned int | value_t |
Public Member Functions | |
HuffmanEncoder () | |
Construct a HuffmanEncoder. | |
HuffmanEncoder (const unsigned int *codeBits, unsigned int nCodes) | |
Construct a HuffmanEncoder. More... | |
void | Initialize (const unsigned int *codeBits, unsigned int nCodes) |
Initialize or reinitialize this object. More... | |
void | Encode (LowFirstBitWriter &writer, value_t value) const |
Static Public Member Functions | |
static void | GenerateCodeLengths (unsigned int *codeBits, unsigned int maxCodeBits, const unsigned int *codeCounts, size_t nCodes) |
Public Attributes | |
SecBlock< Code > | m_valueToCode |
Definition at line 31 of file zdeflate.h.
HuffmanEncoder::HuffmanEncoder | ( | const unsigned int * | codeBits, |
unsigned int | nCodes | ||
) |
Construct a HuffmanEncoder.
codeBits | a table of code bits |
nCodes | the number of codes in the table |
Definition at line 85 of file zdeflate.cpp.
References Filter::Initialize().
void HuffmanEncoder::Initialize | ( | const unsigned int * | codeBits, |
unsigned int | nCodes | ||
) |
Initialize or reinitialize this object.
codeBits | a table of code bits |
nCodes | the number of codes in the table |
Definition at line 184 of file zdeflate.cpp.
References SecBlock< T, A >::begin(), BitReverse(), and SecBlock< T, A >::end().
Referenced by Deflator::Deflator(), HuffmanEncoder(), and Deflator::IsolatedFlush().