public InflaterInputStream(Stream baseInputStream, Inflater inflater, int bufferSize)
 {
     _isStreamOwner = true;
     if (baseInputStream == null)
     {
         throw new ArgumentNullException(nameof(baseInputStream));
     }
     if (inflater == null)
     {
         throw new ArgumentNullException(nameof(inflater));
     }
     if (bufferSize <= 0)
     {
         throw new ArgumentOutOfRangeException(nameof(bufferSize));
     }
     this._baseInputStream = baseInputStream;
     Inf = inflater;
     InputBuffer = new InflaterInputBuffer(baseInputStream, bufferSize);
 }
 public void SetInflaterInput(Inflater inflater)
 {
     if (_available > 0)
     {
         inflater.SetInput(_clearText, _clearTextLength - _available, _available);
         _available = 0;
     }
 }
 public InflaterInputStream(Stream baseInputStream, Inflater inf)
     : this(baseInputStream, inf, 0x1000)
 {
 }