C# Класс Goedel.Debug.Trace

Collection of static methods that provide debugging utilities.
Показать файл Открыть проект

Открытые методы

Метод Описание
AreEqual ( byte X, byte Y ) : bool

Perform pairwise test for equality on members of an array. Unlike the builtin functions, ensures debugger stops at useful position.

Assert ( string Text, bool Test ) : bool

Yet another assertion method.

AssertEqual ( string Text, byte X, byte Y ) : bool

Perform pairwise test for equality on members of an array. Unlike the builtin functions, throws exception if fails.

AssertNotEqual ( string Text, byte X, byte Y ) : bool

Perform pairwise test for inequality on members of an array. Unlike the builtin functions, throws exception if fails.

HexToByte ( string input ) : byte[]

Convert string of hex data to byte array. [why isn't this in the conversions library?)

NYI ( string Report ) : void

Not Yet Implemented method. Cannot be disabled.

Spoil ( byte &Array ) : void

Spoil an element in the specified array.

Spoil ( byte Array, byte BadArray ) : void

Creates a clone of the input array with the first byte flipped.

TBS ( string Report ) : void

Not Yet Implemented method. Cannot be disabled.

Write ( string Text ) : void

Write the specified text to the debug output.

Write ( string Text, Object Data ) : void

Write formatted data to the debug output.

WriteHex ( string Text, byte Data ) : void

Write out a buffer to the console as hex.

WriteLine ( ) : void

Write a newline to the debug output.

WriteLine ( string Text ) : void

Output functions, pipe data to the console right now. In the future, will pipe to a file as well.

WriteLine ( string Text, Object Data ) : void

Write formatted data to the debug output with following newline.

Приватные методы

Метод Описание
HexValue ( char c ) : int

Описание методов

AreEqual() публичный статический Метод

Perform pairwise test for equality on members of an array. Unlike the builtin functions, ensures debugger stops at useful position.
public static AreEqual ( byte X, byte Y ) : bool
X byte First array to compare
Y byte Second array to compare
Результат bool

Assert() публичный статический Метод

Yet another assertion method.
public static Assert ( string Text, bool Test ) : bool
Text string Text to report.
Test bool Test value.
Результат bool

AssertEqual() публичный статический Метод

Perform pairwise test for equality on members of an array. Unlike the builtin functions, throws exception if fails.
public static AssertEqual ( string Text, byte X, byte Y ) : bool
Text string Report for exception.
X byte First array to compare
Y byte Second array to compare
Результат bool

AssertNotEqual() публичный статический Метод

Perform pairwise test for inequality on members of an array. Unlike the builtin functions, throws exception if fails.
public static AssertNotEqual ( string Text, byte X, byte Y ) : bool
Text string Report for exception.
X byte First array to compare
Y byte Second array to compare
Результат bool

HexToByte() публичный статический Метод

Convert string of hex data to byte array. [why isn't this in the conversions library?)
public static HexToByte ( string input ) : byte[]
input string String to convert.
Результат byte[]

NYI() публичный статический Метод

Not Yet Implemented method. Cannot be disabled.
public static NYI ( string Report ) : void
Report string Text to display on the console.
Результат void

Spoil() публичный статический Метод

Spoil an element in the specified array.
public static Spoil ( byte &Array ) : void
Array byte The array to spoil.
Результат void

Spoil() публичный статический Метод

Creates a clone of the input array with the first byte flipped.
public static Spoil ( byte Array, byte BadArray ) : void
Array byte input array
BadArray byte bad array
Результат void

TBS() публичный статический Метод

Not Yet Implemented method. Cannot be disabled.
public static TBS ( string Report ) : void
Report string Text to display on the console.
Результат void

Write() публичный статический Метод

Write the specified text to the debug output.
public static Write ( string Text ) : void
Text string
Результат void

Write() публичный статический Метод

Write formatted data to the debug output.
public static Write ( string Text, Object Data ) : void
Text string Format string
Data Object Data object to write.
Результат void

WriteHex() публичный статический Метод

Write out a buffer to the console as hex.
public static WriteHex ( string Text, byte Data ) : void
Text string Tag to identify the data
Data byte Data to be written.
Результат void

WriteLine() публичный статический Метод

Write a newline to the debug output.
public static WriteLine ( ) : void
Результат void

WriteLine() публичный статический Метод

Output functions, pipe data to the console right now. In the future, will pipe to a file as well.
public static WriteLine ( string Text ) : void
Text string
Результат void

WriteLine() публичный статический Метод

Write formatted data to the debug output with following newline.
public static WriteLine ( string Text, Object Data ) : void
Text string Format string
Data Object Data object to write.
Результат void