public void Close()
{
if (_streamBuffer != null && _streamBuffer.Length > 4096)
{
_streamBuffer = null;
}
if (_stream != null)
{
_stream.Dispose();
_stream = null;
}
_buffer = Array.Empty<byte>();
_offset = 0;
_offsetMax = 0;
_windowOffset = 0;
_windowOffsetMax = 0;
_dictionary = null;
_session = null;
}