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

◆ WriteEvent() [14/18]

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

Definition at line 773 of file EventSource.cs.

774 {
775 if (IsEnabled())
776 {
777 if (arg1 == null)
778 {
779 arg1 = "";
780 }
781 fixed (char* ptr2 = arg1)
782 {
783 EventData* ptr = stackalloc EventData[2];
784 ptr->DataPointer = (IntPtr)ptr2;
785 ptr->Size = (arg1.Length + 1) * 2;
786 ptr->Reserved = 0;
787 ptr[1].DataPointer = (IntPtr)(&arg2);
788 ptr[1].Size = 4;
789 ptr[1].Reserved = 0;
791 }
792 }
793 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

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