internal void LogSendPacketsBuffers(int size)
{
if (!NetEventSource.IsEnabled) return;
foreach (SendPacketsElement spe in _sendPacketsElementsInternal)
{
if (spe != null)
{
if (spe._buffer != null && spe._count > 0)
{
// This element is a buffer.
NetEventSource.DumpBuffer(this, spe._buffer, spe._offset, Math.Min(spe._count, size));
}
else if (spe._filePath != null)
{
// This element is a file.
NetEventSource.NotLoggedFile(spe._filePath, _currentSocket, _completedOperation);
}
}
}
}