/// <summary> /// Returns a human readable text of this entry /// </summary> /// <returns></returns> public unsafe StringBuffer ToStringBuffer() { var buf = new StringBuffer(); buf.Append("0x"); buf.Append((uint)MethodDefinition->Method, "X"); buf.Append("+0x"); buf.Append(Offset, "X"); buf.Append(" "); var idx = MethodName.IndexOf(' ') + 1; //Skip return type buf.Append(MethodName, idx); return buf; }
public static void Error(StringBuffer message) { BeginError(); Screen.Write(message); EndError(); }
private static void WriteHex(uint num, byte digits, byte color) { var oldColor = Screen.Color; Screen.Color = color; if (num == 0) Screen.Color = Colors.LightGray; var hex = new StringBuffer(num, "X"); for (var i = 0; i < digits - hex.Length; i++) Screen.Write('0'); Screen.Write(hex); Screen.Color = oldColor; }
/// <summary> /// Writes the string to the screen. /// </summary> /// <param name="value">The string value to write to the screen.</param> public static void Write(StringBuffer value) { for (int index = 0; index < value.Length; index++) { char chr = value[index]; Write(chr); } }