Fabcoin Core
0.16.2
P2P Digital Currency
|
Huffman Decoder. More...
#include <zinflate.h>
Classes | |
struct | CodeInfo |
class | Err |
struct | LookupEntry |
Public Types | |
enum | { MAX_CODE_BITS = sizeof(code_t)*8 } |
typedef unsigned int | code_t |
typedef unsigned int | value_t |
Public Member Functions | |
HuffmanDecoder () | |
HuffmanDecoder (const unsigned int *codeBitLengths, unsigned int nCodes) | |
void | Initialize (const unsigned int *codeBitLengths, unsigned int nCodes) |
unsigned int | Decode (code_t code, value_t &value) const |
bool | Decode (LowFirstBitReader &reader, value_t &value) const |
Private Member Functions | |
void | FillCacheEntry (LookupEntry &entry, code_t normalizedCode) const |
Static Private Member Functions | |
static code_t | NormalizeCode (code_t code, unsigned int codeBits) |
Private Attributes | |
unsigned int | m_maxCodeBits |
unsigned int | m_cacheBits |
unsigned int | m_cacheMask |
unsigned int | m_normalizedCacheMask |
std::vector< CodeInfo, AllocatorWithCleanup< CodeInfo > > | m_codeToValue |
std::vector< LookupEntry, AllocatorWithCleanup< LookupEntry > > | m_cache |
Friends | |
struct | CodeLessThan |
typedef unsigned int HuffmanDecoder::code_t |
Definition at line 39 of file zinflate.h.
typedef unsigned int HuffmanDecoder::value_t |
Definition at line 40 of file zinflate.h.
anonymous enum |
Enumerator | |
---|---|
MAX_CODE_BITS |
Definition at line 41 of file zinflate.h.
|
inline |
Definition at line 45 of file zinflate.h.
|
inline |
Definition at line 182 of file zinflate.cpp.
bool HuffmanDecoder::Decode | ( | LowFirstBitReader & | reader, |
value_t & | value | ||
) | const |
|
private |
Definition at line 155 of file zinflate.cpp.
void HuffmanDecoder::Initialize | ( | const unsigned int * | codeBitLengths, |
unsigned int | nCodes | ||
) |
Definition at line 65 of file zinflate.cpp.
|
inlinestaticprivate |
Definition at line 60 of file zinflate.cpp.
|
friend |
Definition at line 55 of file zinflate.h.
|
mutableprivate |
Definition at line 86 of file zinflate.h.
|
private |
Definition at line 84 of file zinflate.h.
|
private |
Definition at line 84 of file zinflate.h.
|
private |
Definition at line 85 of file zinflate.h.
|
private |
Definition at line 84 of file zinflate.h.
|
private |
Definition at line 84 of file zinflate.h.