Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteCore()

static void System.Diagnostics.DebugProvider.WriteCore ( string message)
inlinestaticinherited

Definition at line 124 of file DebugProvider.cs.

125 {
126 if (s_WriteCore != null)
127 {
128 s_WriteCore(message);
129 return;
130 }
131 lock (s_ForLock)
132 {
133 if (message.Length <= 4091)
134 {
135 WriteToDebugger(message);
136 return;
137 }
138 int i;
139 for (i = 0; i < message.Length - 4091; i += 4091)
140 {
141 WriteToDebugger(message.Substring(i, 4091));
142 }
143 WriteToDebugger(message.Substring(i));
144 }
145 }
static Action< string > s_WriteCore
static void WriteToDebugger(string message)
static readonly object s_ForLock

References System.Diagnostics.DebugProvider.s_ForLock, System.Diagnostics.DebugProvider.s_WriteCore, and System.Diagnostics.DebugProvider.WriteToDebugger().

Referenced by System.Diagnostics.DefaultTraceListener.Write(), and System.Diagnostics.DebugProvider.Write().