A SymbolFreq is a pair of a symbol and its associated frequency.
| 25 | |
| 26 | // A SymbolFreq is a pair of a symbol and its associated frequency. |
| 27 | type SymbolFreq struct { |
| 28 | Symbol rune |
| 29 | Freq int |
| 30 | } |
| 31 | |
| 32 | // HuffTree returns the root Node of the Huffman tree by compressing listfreq. |
| 33 | // The compression produces the most optimal code lengths, provided listfreq is ordered, |
nothing calls this directly
no outgoing calls
no test coverage detected