[]
Initializes the decompression dictionary from the given uncompressed byte sequence.
public int inflateSetDictionary(byte[] dictionary, int dictLength)
Type | Name | Description |
---|---|---|
byte[] | dictionary | Data in the dictionary. |
int | dictLength | Number of bytes in the dictionary. |
Type | Description |
---|---|
int | Zero on success, an error code on failure. |
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).