#include <DS_HuffmanEncodingTree.h>
Public Member Functions | |
| void | EncodeArray (unsigned char *input, size_t sizeInBytes, 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. | |
| void HuffmanEncodingTree::EncodeArray | ( | unsigned char * | input, | |
| size_t | sizeInBytes, | |||
| RakNet::BitStream * | output | |||
| ) |
Pass an array of bytes to array and a preallocated BitStream to receive the output
| [in] | input | Array of bytes to encode |
| [in] | sizeInBytes | size of input |
| [out] | output | The bitstream to write to |
1.5.7.1