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

◆ WriteEvent() [15/18]

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

Definition at line 796 of file EventSource.cs.

797 {
798 if (IsEnabled())
799 {
800 if (arg1 == null)
801 {
802 arg1 = "";
803 }
804 fixed (char* ptr2 = arg1)
805 {
806 EventData* ptr = stackalloc EventData[3];
807 ptr->DataPointer = (IntPtr)ptr2;
808 ptr->Size = (arg1.Length + 1) * 2;
809 ptr->Reserved = 0;
810 ptr[1].DataPointer = (IntPtr)(&arg2);
811 ptr[1].Size = 4;
812 ptr[1].Reserved = 0;
813 ptr[2].DataPointer = (IntPtr)(&arg3);
814 ptr[2].Size = 4;
815 ptr[2].Reserved = 0;
817 }
818 }
819 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

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