Search results

CompressorHuffmanTree

represent the Huffman Tree

Methods

buildCodes

calculate code from their frequencies

Returns void

buildTree

Build huffman tree

Returns void

calculateBLFreq

calculate code frequencies

Returns void

getEncodedLength

calculate length of compressed data

Returns number

reset

reset all code data in tree

Returns void

writeCodeToStream

write code to the compressor output stream

Parameter Type Description
code number code to be written

Returns void