/// <summary>Clean direct buffer pool</summary> private void CleanBufferPool() { ByteBuffer buf; while ((buf = bufferPool.Poll()) != null) { CryptoStreamUtils.FreeDB(buf); } }
/// <summary>Forcibly free the direct buffers.</summary> private void FreeBuffers() { CryptoStreamUtils.FreeDB(inBuffer); CryptoStreamUtils.FreeDB(outBuffer); CleanBufferPool(); }