NetWrok.HTTP.Zlib.ZlibCodec.InitializeInflate C# (CSharp) Method

InitializeInflate() public method

Initialize the inflation state with an explicit flag to govern the handling of RFC1950 header bytes.
If you want to read a zlib stream you should specify true for expectRfc1950Header. If you have a deflate stream, you will want to specify false.
public InitializeInflate ( int windowBits, bool expectRfc1950Header ) : int
windowBits int The number of window bits to use. If you need to ask what that is, /// then you shouldn't be calling this initializer.
expectRfc1950Header bool whether to expect an RFC1950 header byte pair when reading /// the stream of data to be inflated.
return int
        public int InitializeInflate(int windowBits, bool expectRfc1950Header)
        {
            if (dstate != null) throw new ZlibException("You may not call InitializeInflate() after calling InitializeDeflate().");
            istate = new InflateManager(expectRfc1950Header);
            return istate.Initialize(this, windowBits);
        }

Same methods

ZlibCodec::InitializeInflate ( ) : int
ZlibCodec::InitializeInflate ( bool expectRfc1950Header ) : int
ZlibCodec::InitializeInflate ( int windowBits ) : int