C# Class ME3Explorer.TLKEditorDebugTools

Various debugging methods for both HuffmanCompression.cs and TalkFile.cs. Mainly consists of methods for printing some additional stuff.
ファイルを表示 Open project: ME3Explorer/ME3Explorer

Public Methods

Method Description
GetFixedLengthString ( string input, int length ) : string
LoadHuffmanTree ( BitArray>.Dictionary tree ) : void

Loads HuffmanTree for further debugging (eg. printing out).

Intended for HuffmanCompression.cs data structures.

LoadHuffmanTree ( List HuffmanTree, int curNodeID, string curCode ) : void

Loads HuffmanTree for further debugging (eg. printing out). Start with parameters: (CharacterTree, 0, "")

Intended for TalkFile.cs data structures.

PrintHeader ( TalkFile Header ) : void

Prints TLK Header from TalkFile.cs module.

PrintLookupTable ( ) : void

Prints code for every character coded in Huffman Tree (previously loaded).

TestDictionaryBytesReading ( BinaryReader r, int treeNodeCount ) : void

For testing binary representation of HuffmanTree form module HuffmanCompression.cs.

Method Details

GetFixedLengthString() static public method

static public GetFixedLengthString ( string input, int length ) : string
input string
length int
return string

LoadHuffmanTree() public static method

Loads HuffmanTree for further debugging (eg. printing out).
Intended for HuffmanCompression.cs data structures.
public static LoadHuffmanTree ( BitArray>.Dictionary tree ) : void
tree BitArray>.Dictionary
return void

LoadHuffmanTree() static public method

Loads HuffmanTree for further debugging (eg. printing out). Start with parameters: (CharacterTree, 0, "")
Intended for TalkFile.cs data structures.
static public LoadHuffmanTree ( List HuffmanTree, int curNodeID, string curCode ) : void
HuffmanTree List
curNodeID int
curCode string
return void

PrintHeader() static public method

Prints TLK Header from TalkFile.cs module.
static public PrintHeader ( TalkFile Header ) : void
Header TalkFile
return void

PrintLookupTable() public static method

Prints code for every character coded in Huffman Tree (previously loaded).
public static PrintLookupTable ( ) : void
return void

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