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

◆ WriteEvent() [16/18]

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

Definition at line 822 of file EventSource.cs.

823 {
824 if (IsEnabled())
825 {
826 if (arg1 == null)
827 {
828 arg1 = "";
829 }
830 fixed (char* ptr2 = arg1)
831 {
832 EventData* ptr = stackalloc EventData[2];
833 ptr->DataPointer = (IntPtr)ptr2;
834 ptr->Size = (arg1.Length + 1) * 2;
835 ptr->Reserved = 0;
836 ptr[1].DataPointer = (IntPtr)(&arg2);
837 ptr[1].Size = 8;
838 ptr[1].Reserved = 0;
840 }
841 }
842 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

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