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

InitializeDeflate() public method

Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel, the specified number of window bits, and the explicit flag governing whether to emit an RFC1950 header byte pair.
public InitializeDeflate ( CompressionLevel level, int bits, bool wantRfc1950Header ) : int
level CompressionLevel The compression level for the codec.
bits int the number of window bits to use. If you don't know what this means, don't use this method.
wantRfc1950Header bool whether to emit an initial RFC1950 byte pair in the compressed stream.
return int
        public int InitializeDeflate(CompressionLevel level, int bits, bool wantRfc1950Header)
        {
            if (istate != null) throw new ZlibException("You may not call InitializeDeflate() after calling InitializeInflate().");
            dstate = new DeflateManager();
            dstate.WantRfc1950HeaderBytes = wantRfc1950Header;
            return dstate.Initialize(this, level, bits);
        }

Same methods

ZlibCodec::InitializeDeflate ( ) : int
ZlibCodec::InitializeDeflate ( CompressionLevel level ) : int
ZlibCodec::InitializeDeflate ( CompressionLevel level, bool wantRfc1950Header ) : int
ZlibCodec::InitializeDeflate ( CompressionLevel level, int bits ) : int