예제 #1
0
 public InflaterInputStream(Stream baseInputStream, Inflater inflater, int bufferSize)
 {
     this.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;
     this.inf = inflater;
     this.inputBuffer = new InflaterInputBuffer(baseInputStream, bufferSize);
 }
예제 #2
0
 public void SetInflaterInput(Inflater inflater)
 {
     if (this.available > 0)
     {
         inflater.SetInput(this.clearText, this.clearTextLength - this.available, this.available);
         this.available = 0;
     }
 }
예제 #3
0
 public InflaterInputStream(Stream baseInputStream, Inflater inf) : this(baseInputStream, inf, 0x1000)
 {
 }