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

◆ BufferDropped()

unsafe void System.Buffers.ArrayPoolEventSource.BufferDropped ( int bufferId,
int bufferSize,
int poolId,
int bucketId,
BufferDroppedReason reason )
inlinepackage

Definition at line 103 of file ArrayPoolEventSource.cs.

104 {
105 EventData* ptr = stackalloc EventData[5];
106 ptr->Size = 4;
107 ptr->DataPointer = (IntPtr)(&bufferId);
108 ptr->Reserved = 0;
109 ptr[1].Size = 4;
110 ptr[1].DataPointer = (IntPtr)(&bufferSize);
111 ptr[1].Reserved = 0;
112 ptr[2].Size = 4;
113 ptr[2].DataPointer = (IntPtr)(&poolId);
114 ptr[2].Reserved = 0;
115 ptr[3].Size = 4;
116 ptr[3].DataPointer = (IntPtr)(&bucketId);
117 ptr[3].Reserved = 0;
118 ptr[4].Size = 4;
119 ptr[4].DataPointer = (IntPtr)(&reason);
120 ptr[4].Reserved = 0;
121 WriteEventCore(6, 5, ptr);
122 }
unsafe void WriteEventCore(int eventId, int eventDataCount, EventData *data)

References System.Diagnostics.Tracing.EventSource.EventData.DataPointer, System.Diagnostics.Tracing.EventSource.EventData.Reserved, System.Diagnostics.Tracing.EventSource.EventData.Size, and System.Diagnostics.Tracing.EventSource.WriteEventCore().

Referenced by System.Buffers.ConfigurableArrayPool< T >.Bucket.Return(), and System.Buffers.ConfigurableArrayPool< T >.Return().