[]
        
(Showing Draft Content)

C1.Zip.ZLib.ZStream.deflateSetDictionary

deflateSetDictionary Method

deflateSetDictionary(byte[], int)

Initializes the compression dictionary from the given byte sequence without producing any compressed output.

Declaration
public int deflateSetDictionary(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 deflateInit(int), before any call to deflate(int).

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