[]
        
(Showing Draft Content)

C1.Zip.ZLib.ZStream.inflateSetDictionary

inflateSetDictionary Method

inflateSetDictionary(byte[], int)

Initializes the decompression dictionary from the given uncompressed byte sequence.

Declaration
public int inflateSetDictionary(byte[] dictionary, int dictLength)
Parameters
Type Name Description
byte[] dictionary

Data in the dictionary.

int dictLength

Number of bytes in the dictionary.

Returns
Type Description
int

Zero on success, an error code on failure.

Remarks

This method must be called immediately after a call of inflate(int) if this call returned Z_NEED_DICT. The dictionary chosen by the compressor can be determined from the Adler32 value returned by this call to inflate.

The compressor and decompressor must use exactly the same dictionary (see the deflateSetDictionary(byte[], int) method).