Sets the preset dictionary. This should only be called, if needsDictionary() returns true and it should set the same dictionary, that was used for deflating. The getAdler() function returns the checksum of the dictionary needed.
Parameters
- buffer
- The dictionary.
- index
- The index into buffer where the dictionary starts.
- count
- The number of bytes in the dictionary.
Exceptions
Exception Type | Condition |
---|---|
InvalidOperationException | No dictionary is needed. |
SharpZipBaseException | The adler checksum for the buffer is invalid |
See Also
Inflater Class | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Inflater.SetDictionary Overload List