Akka.IO.DirectByteBufferPool.OfferBufferToPool C# (CSharp) Method

OfferBufferToPool() private method

private OfferBufferToPool ( Akka.IO.ByteBuffer buf ) : void
buf Akka.IO.ByteBuffer
return void
        private void OfferBufferToPool(ByteBuffer buf)
        {
            lock (_pool.SyncRoot)
            {
                if (_buffersInPool < _maxPoolEntries)
                {
                    _pool[_buffersInPool] = buf;
                    _buffersInPool += 1;
                }  // else let the buffer be gc'd
            }
        }
    }