Initializes the compression dictionary from the given byte sequence without
producing any compressed output.
Namespace:
C1.C1Zip.ZLibAssembly: C1.Silverlight.Zip (in C1.Silverlight.Zip.dll)
Syntax
C# |
---|
public int deflateSetDictionary( byte[] dictionary, int dictLength ) |
Visual Basic |
---|
Public Function deflateSetDictionary ( _ dictionary As Byte(), _ dictLength As Integer _ ) As Integer |
Parameters
- dictionary
- Type: array<System..::..Byte>[]()[][]
Data in the dictionary.
- dictLength
- Type: System..::..Int32
Number of bytes in the dictionary.
Return Value
Zero on success, an error code on failure.
Remarks
This method must be called immediately after deflateInit(Int32), before any call to deflate(Int32).
The compressor and decompressor must use exactly the same dictionary (see inflateSetDictionary(array<Byte>[]()[][], Int32)).