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

◆ DumpBuffer() [2/9]

static void System.Net.NetEventSource.DumpBuffer ( object thisOrContextObject,
byte[] buffer,
int offset,
int count,
[CallerMemberName] string memberName = null )
inlinestatic

Definition at line 128 of file NetEventSource.cs.

129 {
130 if (Log.IsEnabled() && offset >= 0 && offset <= buffer.Length - count)
131 {
132 count = Math.Min(count, 1024);
133 byte[] array = buffer;
134 if (offset != 0 || count != buffer.Length)
135 {
136 array = new byte[count];
137 Buffer.BlockCopy(buffer, offset, array, 0, count);
138 }
139 Log.DumpBuffer(IdOf(thisOrContextObject), memberName, array);
140 }
141 }
static readonly System.Net.NetEventSource Log
static string IdOf(object value)

References System.array, System.Buffer.BlockCopy(), System.buffer, System.count, System.Net.NetEventSource.IdOf(), System.Net.NetEventSource.Log, System.Math.Min(), and System.offset.