コード例 #1
0
        /// <summary>Clean direct buffer pool</summary>
        private void CleanBufferPool()
        {
            ByteBuffer buf;

            while ((buf = bufferPool.Poll()) != null)
            {
                CryptoStreamUtils.FreeDB(buf);
            }
        }
コード例 #2
0
 /// <summary>Forcibly free the direct buffers.</summary>
 private void FreeBuffers()
 {
     CryptoStreamUtils.FreeDB(inBuffer);
     CryptoStreamUtils.FreeDB(outBuffer);
     CleanBufferPool();
 }