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

◆ WriteEvent() [13/18]

unsafe void System.Diagnostics.Tracing.EventSource.WriteEvent ( int eventId,
string? arg1 )
inlineprotectedinherited

Definition at line 637 of file EventSource.cs.

638 {
639 if (IsEnabled())
640 {
641 if (arg1 == null)
642 {
643 arg1 = "";
644 }
645 fixed (char* ptr2 = arg1)
646 {
647 EventData* ptr = stackalloc EventData[1];
648 ptr->DataPointer = (IntPtr)ptr2;
649 ptr->Size = (arg1.Length + 1) * 2;
650 ptr->Reserved = 0;
652 }
653 }
654 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

References System.Diagnostics.Tracing.EventSource.IsEnabled(), and System.Diagnostics.Tracing.EventSource.WriteEventCore().