[]
        
(Showing Draft Content)

C1.Zip.ZLib.ZStream.inflateInit

inflateInit Method

inflateInit()

Initializes the internal stream state for decompression.

Declaration
public int inflateInit()
Returns
Type Description
int

Zero on success, an error code on failure.

Remarks

The fields next_in and avail_in must be initialized before by the caller.

inflateInit does not perform any decompression apart from reading the zlib header if present: data decompression is done by the inflate(int) method. Therefore, the next_in and avail_in may be modified, but next_out and avail_out are unchanged.

inflateInit(int)

Initializes the internal stream state for decompression.

Declaration
public int inflateInit(int bits)
Parameters
Type Name Description
int bits

Size of the LZ77 sliding compression window in bits (the default value is 15 bits).

Returns
Type Description
int

Zero on success, an error code on failure.