ComponentOne Zip for .NET 2.0
C1.Zip Assembly / C1.Zip.ZLib Namespace / ZStream Class / deflateInit Method / deflateInit(Int32,Int32) Method
Compression level between zero and nine (0-9).
Size of the LZ77 sliding compression window in bits (the default value is 15 bits).

In This Topic
    deflateInit(Int32,Int32) Method
    In This Topic
    Initializes the internal stream state for compression.
    Syntax
    Public Overloads Function deflateInit( _
       ByVal level As Integer, _
       ByVal bits As Integer _
    ) As Integer
    public int deflateInit( 
       int level,
       int bits
    )

    Parameters

    level
    Compression level between zero and nine (0-9).
    bits
    Size of the LZ77 sliding compression window in bits (the default value is 15 bits).

    Return Value

    Zero on success, an error code on failure.
    Remarks

    Compression level 1 gives best speed, 9 gives best compression.

    Compression level zero gives no compression at all (the input data is simply copied a block at a time).

    The default compression level is 6, which provides a compromise between speed and compression.

    See Also