#include <DS_HuffmanEncodingTree.h>
Public Member Functions | |
| void | EncodeArray (unsigned char *input, unsigned sizeInBytes, RakNet::BitStream *output) |
| unsigned | DecodeArray (RakNet::BitStream *input, unsigned sizeInBits, unsigned maxCharsToWrite, unsigned char *output) |
| void | DecodeArray (unsigned char *input, unsigned sizeInBits, RakNet::BitStream *output) |
| void | GenerateFromFrequencyTable (unsigned int frequencyTable[256]) |
| Given a frequency table of 256 elements, all with a frequency of 1 or more, generate the tree. | |
| void | FreeMemory (void) |
| Free the memory used by the tree. | |
Private Member Functions | |
| void | InsertNodeIntoSortedList (HuffmanEncodingTreeNode *node, DataStructures::LinkedList< HuffmanEncodingTreeNode * > *huffmanEncodingTreeNodeList) const |
Private Attributes | |
| HuffmanEncodingTreeNode * | root |
| The root node of the tree. | |
| CharacterEncoding | encodingTable [256] |
Classes | |
| struct | CharacterEncoding |
| Used to hold bit encoding for one character. More... | |
|
||||||||||||||||
|
Pass an array of bytes to array and a preallocated BitStream to receive the output
|
1.4.6-NO