Inflater.SetDictionary Method (Byte[])

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() _
)
[C#]
public void SetDictionary(
   byte[] buffer
);

Parameters

buffer

the dictionary.

Exceptions

Exception TypeCondition
System.InvalidOperationException if no dictionary is needed.
System.ArgumentException if the dictionary checksum is wrong.

See Also

Inflater Class | Inflater Members | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Inflater.SetDictionary Overload List