Lz4Decompressor.setDictionary

bool setDictionary(const(ubyte)[] dict)

Set or update the decompression dictionary.

The dictionary must match the one used during compression. LZ4 frames that require a dictionary include a dictionary ID in the header, which is validated against the provided dictionary.

Dictionaries must be supplied before any input is written.

Parameters

dictDictionary bytes to use. Must match the dictionary used during compression.

Returns

true if the dictionary was accepted, or false if

called after any input has been written.