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

InitializeDeflate() public method

Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel, and the explicit flag governing whether to emit an RFC1950 header byte pair.
The codec will use the MAX window bits and the specified CompressionLevel.
public InitializeDeflate ( CompressionLevel level, bool wantRfc1950Header ) : int
level CompressionLevel The compression level for the codec.
wantRfc1950Header bool whether to emit an initial RFC1950 byte pair in the compressed stream.
return int
        public int InitializeDeflate(CompressionLevel level, bool wantRfc1950Header)
        {
            return InitializeDeflate(level, ZlibConstants.WINDOW_BITS_MAX, wantRfc1950Header);
        }

Same methods

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