ZstdCompressor.setDictionary

bool setDictionary(const(ubyte)[] dict)

Set a compression dictionary.

Parameters

dictRaw dictionary bytes. Pass an empty array to clear the current dictionary.

Returns

true if the dictionary was loaded successfully, false on error.

Throws

Does not throw; returns false on ZSTD errors.