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

◆ DumpBuffer() [4/9]

static unsafe void System.Net.NetEventSource.DumpBuffer ( object thisOrContextObject,
IntPtr bufferPtr,
int count,
[CallerMemberName] string memberName = null )
inlinestatic

Definition at line 144 of file NetEventSource.cs.

145 {
146 if (Log.IsEnabled())
147 {
148 byte[] array = new byte[Math.Min(count, 1024)];
149 fixed (byte* destination = array)
150 {
151 Buffer.MemoryCopy((void*)bufferPtr, destination, array.Length, array.Length);
152 }
153 Log.DumpBuffer(IdOf(thisOrContextObject), memberName, array);
154 }
155 }
static readonly System.Net.NetEventSource Log
static string IdOf(object value)

References System.array, System.count, System.destination, System.Net.NetEventSource.IdOf(), System.Net.NetEventSource.Log, System.Buffer.MemoryCopy(), and System.Math.Min().