Ionic Zip Library v1.9.1.6
InitializeDeflate Method (level, bits, wantRfc1950Header)
Reference ► Ionic.Zlib ► ZlibCodec ► InitializeDeflate(CompressionLevel, Int32, Boolean)
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.

C# | Visual Basic | Visual C++ |
public int InitializeDeflate( CompressionLevel level, int bits, bool wantRfc1950Header )
Public Function InitializeDeflate ( _ level As CompressionLevel, _ bits As Integer, _ wantRfc1950Header As Boolean _ ) As Integer
public: int InitializeDeflate( CompressionLevel level, int bits, bool wantRfc1950Header )

- level (CompressionLevel)
- The compression level for the codec.
- bits (Int32)
- the number of window bits to use. If you don't know what this means, don't use this method.
- wantRfc1950Header (Boolean)
- whether to emit an initial RFC1950 byte pair in the compressed stream.

Z_OK if all goes well.