Lz4Compressor.setDictionary

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).

Parameters

dictDictionary bytes to use.

Returns

true if the dictionary was accepted, or false if

called after any input has been written.