Ejemplo n.º 1
0
 public InflaterInputStream(Stream baseInputStream, Inflater inf, int size)
 {
     this.onebytebuffer = new byte[1];
     this.baseInputStream = baseInputStream;
     this.inf = inf;
     try
     {
         this.len = (int) baseInputStream.Length;
     }
     catch (Exception)
     {
         this.len = 0;
     }
     if (size <= 0)
     {
         throw new ArgumentOutOfRangeException("size <= 0");
     }
     this.buf = new byte[size];
 }
Ejemplo n.º 2
0
 public InflaterInputStream(Stream baseInputStream, Inflater inf)
     : this(baseInputStream, inf, 0x1000)
 {
 }