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

◆ BufferRented()

unsafe void System.Buffers.ArrayPoolEventSource.BufferRented ( int bufferId,
int bufferSize,
int poolId,
int bucketId )
inlinepackage

Definition at line 42 of file ArrayPoolEventSource.cs.

43 {
44 EventData* ptr = stackalloc EventData[4];
45 ptr->Size = 4;
46 ptr->DataPointer = (IntPtr)(&bufferId);
47 ptr->Reserved = 0;
48 ptr[1].Size = 4;
49 ptr[1].DataPointer = (IntPtr)(&bufferSize);
50 ptr[1].Reserved = 0;
51 ptr[2].Size = 4;
52 ptr[2].DataPointer = (IntPtr)(&poolId);
53 ptr[2].Reserved = 0;
54 ptr[3].Size = 4;
55 ptr[3].DataPointer = (IntPtr)(&bucketId);
56 ptr[3].Reserved = 0;
57 WriteEventCore(1, 4, ptr);
58 }
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 >.Rent().