Beispiel #1
0
 public InflaterInputStream(Stream baseInputStream, Inflater inflater, int bufferSize)
 {
     isStreamOwner = true;
     if (baseInputStream == null)
     {
         throw new ArgumentNullException("baseInputStream");
     }
     if (inflater == null)
     {
         throw new ArgumentNullException("inflater");
     }
     if (bufferSize <= 0)
     {
         throw new ArgumentOutOfRangeException("bufferSize");
     }
     this.baseInputStream = baseInputStream;
     inf = inflater;
     inputBuffer = new InflaterInputBuffer(baseInputStream, bufferSize);
 }
Beispiel #2
0
 public void SetInflaterInput(Inflater inflater)
 {
     if (available > 0)
     {
         inflater.SetInput(clearText, clearTextLength - available, available);
         available = 0;
     }
 }
Beispiel #3
0
 public InflaterInputStream(Stream baseInputStream, Inflater inf)
     : this(baseInputStream, inf, 0x1000)
 {
 }