//Supporting Structure
struct DictPair{ //Dictionary Pair
unsigned char c;
int vol;
};
struct hfHead{
int size; //size of header
int streamSize; //size of the decompressed file
int dictionarySize; //size of dictionary
DictPair dictpair[256];
};
union HuffmanFileHead {
hfHead head;
int binArray[300]; //For easier dumping.
};
struct HufTree{
HufTree *l, *r;
unsigned char c;
int vol;
HufTree():l(0),r(0),c(0),vol(0)
{};
HufTree(unsigned char cin, int volin):l(0),r(0),c(cin),vol(volin)
{}; //Constructor
};