Zip for WPF and Silverlight
C1.C1Zip.ZLib Namespace / ZStream Class / inflateSetDictionary Method
Data in the dictionary.
Number of bytes in the dictionary.

In This Topic
    inflateSetDictionary Method (ZStream)
    In This Topic
    Initializes the decompression dictionary from the given uncompressed byte sequence.
    Syntax
    'Declaration
     
    
    Public Function inflateSetDictionary( _
       ByVal dictionary() As Byte, _
       ByVal dictLength As Integer _
    ) As Integer
    public int inflateSetDictionary( 
       byte[] dictionary,
       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