true if the dictionary was accepted, or false if
called after any input has been written.
bool setDictionary(const(ubyte)[] dict)Set or update the compression dictionary.
The dictionary is used to improve compression by allowing matches to reference data in the dictionary. This is particularly effective when compressing data that is similar to the dictionary content.
Dictionaries must be supplied before any input is written. For best results, use dictionaries up to 64KB (the maximum LZ4 match offset).
dict | Dictionary bytes to use. |
true if the dictionary was accepted, or false if
called after any input has been written.