Ionic Zip Library v1.9.1.6
InitializeDeflate Method (level, bits)
Reference ► Ionic.Zlib ► ZlibCodec ► InitializeDeflate(CompressionLevel, Int32)
Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel,
and the specified number of window bits.

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

- 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.

Z_OK if all goes well.

The codec will use the specified number of window bits and the specified CompressionLevel.