Exemplo n.º 1
0
 internal int inflateEnd(ZStream z)
 {
     if (this.blocks != null)
     {
         this.blocks.free(z);
     }
     this.blocks = null;
     return(0);
 }
Exemplo n.º 2
0
 internal int inflateInit(ZStream z, int w)
 {
     z.msg       = null;
     this.blocks = null;
     this.nowrap = 0;
     if (w < 0)
     {
         w           = -w;
         this.nowrap = 1;
     }
     if ((w < 8) || (w > 15))
     {
         this.inflateEnd(z);
         return(-2);
     }
     this.wbits      = w;
     z.istate.blocks = new InfBlocks(z, (z.istate.nowrap != 0) ? null : this, ((int)1) << w);
     this.inflateReset(z);
     return(0);
 }