DeflateRawCompressor.setDictionary

bool setDictionary(const(ubyte)[] dict)

Set compression dictionary for better compression ratios.

RAW DEFLATE has no container metadata for dictionary identification; compressor and decompressor must agree on the same dictionary out-of-band. The dictionary therefore must be configured before any input is written.

Parameters

dictDictionary bytes to use for compression.

Returns

true if dictionary was set successfully, false otherwise.

Throws

CompressionError if dictionary setup fails.