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.
[Visual Basic]
Overloads Public Sub SetDictionary( _
   ByVal buffer As Byte(), _
   ByVal off As Integer, _
   ByVal len As Integer _
)
[C#]
public void SetDictionary(
   byte[] buffer,
   int off,
   int len
);
Parameters
buffer
the dictionary.
off
the offset into buffer where the dictionary starts.
len
the length of the dictionary.
Exceptions
Exception Type | Condition |
---|---|
System.InvalidOperationException | if no dictionary is needed. |
System.ArgumentException | if the dictionary checksum is wrong. |
System.ArgumentOutOfRangeException | if the off and/or len are wrong. |
See Also
Inflater Class | Inflater Members | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Inflater.SetDictionary Overload List