public static void Write(uint value) { var sb = new StringBuffer(); sb.Append(value); sb.WriteTo(Dev); }
public static void Write(NullTerminatedString *value) { var sb = new StringBuffer(); sb.Append(value); sb.WriteTo(Dev); }
private static void WriteTimeStamp() { if (!UseTimeStamp) { return; } if (!PerformanceCounter.Initialized) { return; } uint timestamp = PerformanceCounter.GetReadableCounter(); var diff = timestamp - OldTimeStamp; var sb = new StringBuffer(); sb.Append('['); sb.Append(timestamp); if (diff > TimeStampThreshold && OldTimeStamp > 0) { sb.Append(" (+"); sb.Append(diff); sb.Append(")"); } OldTimeStamp = timestamp; sb.Append("] "); sb.WriteTo(Dev); }
public static void Write(string format, uint arg0, uint arg1, uint arg2, uint arg3, uint arg4) { var buf = new StringBuffer(); buf.Append(format, arg0, arg1, arg2, arg3, arg4); buf.WriteTo(Dev); }
public static void Write(string format, string arg0) { WriteTimeStamp(); var buf = new StringBuffer(); buf.Append(format, arg0); buf.WriteTo(Dev); }
public static void WriteLineHex(uint value) { WriteTimeStamp(); var buf = new StringBuffer(value, "X"); buf.Append('\n'); buf.WriteTo(Dev); }
public static void WriteLine(string format, bool arg0) { WriteTimeStamp(); var buf = new StringBuffer(); buf.Append(format, arg0 == true ? "yes" : "no"); buf.Append('\n'); buf.WriteTo(Dev); }
public static void WriteLine(NullTerminatedString *value) { WriteTimeStamp(); var sb = new StringBuffer(); sb.Append(value); sb.Append('\n'); sb.WriteTo(Dev); }
public static void WriteLine(uint value) { WriteTimeStamp(); var sb = new StringBuffer(); sb.Append(value); sb.Append('\n'); sb.WriteTo(Dev); }
public static void WriteLine(string format, uint arg0, uint arg1, uint arg2, uint arg3, uint arg4, uint arg5, uint arg6) { WriteTimeStamp(); var buf = new StringBuffer(); buf.Append(format, arg0, arg1, arg2, arg3, arg4, arg5, arg6); buf.Append('\n'); buf.WriteTo(Dev); }
public static void WriteLine(string format, int arg0, uint arg1) { WriteTimeStamp(); var buf = new StringBuffer(); buf.Append(format, arg0, arg1); buf.Append('\n'); buf.WriteTo(Dev); }
public static void WriteLine(string format, int arg0, int arg1, int arg2) { WriteTimeStamp(); var buf = new StringBuffer(); buf.Append(format, (uint)arg0, (uint)arg1, (uint)arg2); //TODO buf.Append('\n'); buf.WriteTo(Dev); }
public static void WriteHex(uint value) { var buf = new StringBuffer(value, "X"); buf.WriteTo(Dev); }