ME3Explorer.TLKEditorDebugTools.TestDictionaryBytesReading C# (CSharp) Method

TestDictionaryBytesReading() public static method

For testing binary representation of HuffmanTree form module HuffmanCompression.cs.
public static TestDictionaryBytesReading ( BinaryReader r, int treeNodeCount ) : void
r System.IO.BinaryReader
treeNodeCount int
return void
        public static void TestDictionaryBytesReading(BinaryReader r, int treeNodeCount)
        {
            Console.WriteLine("**********************************");
            Console.WriteLine("TESTING Huffman Tree");
            Console.WriteLine("**********************************");
            List<TalkFile.HuffmanNode> CharacterTree = new List<TalkFile.HuffmanNode>();
            for (int i = 0; i < treeNodeCount; i++)
                CharacterTree.Add(new TalkFile.HuffmanNode(r));

            lookupDict.Clear();
            LoadHuffmanTree(CharacterTree, 0, "");
            PrintLookupTable();
        }
    }