Initializes the decompression dictionary from the given uncompressed byte sequence.
Namespace:
C1.C1Zip.ZLibAssembly: C1.Silverlight.Zip (in C1.Silverlight.Zip.dll)
Syntax
C# |
---|
public int inflateSetDictionary( byte[] dictionary, int dictLength ) |
Visual Basic |
---|
Public Function inflateSetDictionary ( _ 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 a call of inflate(Int32) if this call returned Z_NEED_DICT. The dictionary chosen by the compressor can be determined from the Adler32 value returned by this call to inflate.
The compressor and decompressor must use exactly the same dictionary (see the deflateSetDictionary(array<Byte>[]()[][], Int32) method).