void LogInternal(bool send, ulong code, uint p1, uint p2)
{
int p = (int)((uint)Interlocked.Increment(ref this.index) % this.entries.Length);
this.entries[p] = new Entry()
{
Ticks = Stopwatch.GetTimestamp(),
ThreadId = System.Environment.CurrentManagedThreadId,
Send = send,
Code = code,
Param1 = p1,
Param2 = p2
};
}