HuffmanEncoder Class Reference

List of all members.

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.
void Initialize (const unsigned int *codeBits, unsigned int nCodes)
 Initialize or reinitialize this object.
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< Codem_valueToCode

Detailed Description

Definition at line 31 of file zdeflate.h.


Constructor & Destructor Documentation

HuffmanEncoder::HuffmanEncoder ( const unsigned int *  codeBits,
unsigned int  nCodes 
)

Construct a HuffmanEncoder.

Parameters:
codeBits a table of code bits
nCodes the number of codes in the table

Definition at line 85 of file zdeflate.cpp.

References Initialize().


Member Function Documentation

void HuffmanEncoder::Initialize ( const unsigned int *  codeBits,
unsigned int  nCodes 
)

Initialize or reinitialize this object.

Parameters:
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(), SecBlock< T, A >::end(), and SecBlock< T, A >::resize().

Referenced by HuffmanEncoder().


The documentation for this class was generated from the following files:

Generated on 24 Mar 2016 for Crypto++ by  doxygen 1.6.1