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

◆ WriteEvent() [6/18]

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

Definition at line 868 of file EventSource.cs.

869 {
870 if (IsEnabled())
871 {
872 if (arg2 == null)
873 {
874 arg2 = "";
875 }
876 fixed (char* ptr2 = arg2)
877 {
878 EventData* ptr = stackalloc EventData[2];
879 ptr->DataPointer = (IntPtr)(&arg1);
880 ptr->Size = 4;
881 ptr->Reserved = 0;
882 ptr[1].DataPointer = (IntPtr)ptr2;
883 ptr[1].Size = (arg2.Length + 1) * 2;
884 ptr[1].Reserved = 0;
886 }
887 }
888 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

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