Sets the dictionary which should be used in the deflate process. The dictionary is a byte array containing strings that are likely to occur in the data which should be compressed. The dictionary is not stored in the compressed output, only a checksum. To decompress the output you need to supply the same dictionary again.
Parameters
- dict
- The dictionary data
- offset
- An offset into the dictionary.
- length
- The length of the dictionary data to use
Exceptions
Exception Type | Condition |
---|---|
InvalidOperationException | If setInput () or deflate () were already called or another dictionary was already set. |
See Also
Deflater Class | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Deflater.SetDictionary Overload List