Sets the dictionary which should be used in the deflate process. The dictionary should be 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.
[Visual Basic]
Overloads Public Sub SetDictionary( _
   ByVal dict As Byte(), _
   ByVal offset As Integer, _
   ByVal length As Integer _
)
[C#]
public void SetDictionary(
   byte[] dict,
   int offset,
   int length
);
Parameters
dict
the dictionary.
offset
an offset into the dictionary.
length
the length of the dictionary.
Exceptions
Exception Type | Condition |
---|---|
System.InvalidOperationException | if setInput () or deflate () were already called or another dictionary was already set. |
See Also
Deflater Class | Deflater Members | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Deflater.SetDictionary Overload List