[]
Initializes the compression dictionary from the given byte sequence without producing any compressed output.
public int deflateSetDictionary(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 deflateInit(int), before any call to deflate(int).
The compressor and decompressor must use exactly the same dictionary (see inflateSetDictionary(byte[], int)).