public static void ReleaseBuffer( byte[] buffer ) { if ( buffer != null && buffer.Length == m_CoalesceBufferSize ) { m_UnusedBuffers.ReleaseBuffer( buffer ); } }
public static void Release(SendQueue.Entry e) { Stack stack1 = SendQueue.Entry.m_Pool; lock (SendQueue.Entry.m_Pool) { SendQueue.Entry.m_Pool.Push(e); if (e.m_Managed) { SendQueue.ReleaseBuffer(e.m_Buffer); } } }