ComponentOne Zip for UWP
inflateSetDictionary Method

C1.UWP.Zip Assembly > C1.C1Zip.ZLib Namespace > ZStream Class : inflateSetDictionary Method
Data in the dictionary.
Number of bytes in the dictionary.
Initializes the decompression dictionary from the given uncompressed byte sequence.
Syntax
'Declaration
 
Public Function inflateSetDictionary( _
   ByVal dictionary() As System.Byte, _
   ByVal dictLength As System.Integer _
) As System.Integer
public System.int inflateSetDictionary( 
   System.byte[] dictionary,
   System.int dictLength
)

Parameters

dictionary
Data in the dictionary.
dictLength
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 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 method).

See Also

Reference

ZStream Class
ZStream Members