Exemple #1
0
        private HuffmanTreeNode CreateRawValueTree(Stream input, Match[] matches)
        {
            var inputArray   = ToArray(input);
            var huffmanInput = RemoveMatchesFromInput(inputArray, matches);
            var tree         = new HuffmanTree(8);

            return(tree.Build(inputArray));
        }
Exemple #2
0
        private HuffmanTreeNode CreateDispIndexTree()
        {
            var tree = new HuffmanTree(8);

            return(tree.Build(_dispIndexes));
        }
Exemple #3
0
        private HuffmanTreeNode CreateIndexValueTree()
        {
            var tree = new HuffmanTree(8);

            return(tree.Build(_countIndexes));
        }