Exemplo n.º 1
0
 internal int End()
 {
     if (this.blocks != null)
         this.blocks.Free();
     this.blocks = (InflateBlocks)null;
     return 0;
 }
Exemplo n.º 2
0
 internal int End()
 {
     if (this.blocks != null)
     {
         this.blocks.Free();
     }
     this.blocks = (InflateBlocks)null;
     return(0);
 }
Exemplo n.º 3
0
 internal int End()
 {
     if (blocks != null)
     {
         blocks.Free();
     }
     blocks = null;
     return(0);
 }
Exemplo n.º 4
0
 internal int Initialize(ZlibCodec codec, int w)
 {
     this._codec         = codec;
     this._codec.Message = (string)null;
     this.blocks         = (InflateBlocks)null;
     if (w < 8 || w > 15)
     {
         this.End();
         throw new ZlibException("Bad window size.");
     }
     this.wbits  = w;
     this.blocks = new InflateBlocks(codec, this.HandleRfc1950HeaderBytes ? (object)this : (object)(InflateManager)null, 1 << w);
     this.Reset();
     return(0);
 }
Exemplo n.º 5
0
 internal int Initialize(ZlibCodec codec, int w)
 {
     _codec         = codec;
     _codec.Message = null;
     blocks         = null;
     if (w < 8 || w > 15)
     {
         End();
         throw new ZlibException("Bad window size.");
     }
     wbits  = w;
     blocks = new InflateBlocks(codec, (!HandleRfc1950HeaderBytes) ? null : this, 1 << w);
     Reset();
     return(0);
 }
 internal int Initialize(ZlibCodec codec, int w)
 {
     this._codec         = codec;
     this._codec.Message = null;
     this.blocks         = null;
     if (w >= 8 && w <= 15)
     {
         this.wbits  = w;
         this.blocks = new InflateBlocks(codec, (!this.HandleRfc1950HeaderBytes) ? null : this, 1 << w);
         this.Reset();
         return(0);
     }
     this.End();
     throw new ZlibException("Bad window size.");
 }
Exemplo n.º 7
0
 internal int Initialize(ZlibCodec codec, int w)
 {
     this._codec = codec;
     this._codec.Message = (string)null;
     this.blocks = (InflateBlocks)null;
     if (w < 8 || w > 15)
     {
         this.End();
         throw new ZlibException("Bad window size.");
     }
     else
     {
         this.wbits = w;
         this.blocks = new InflateBlocks(codec, this.HandleRfc1950HeaderBytes ? (object)this : (object)(InflateManager)null, 1 << w);
         this.Reset();
         return 0;
     }
 }