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

In This Topic
    deflateSetDictionary Method (ZStream)
    In This Topic
    Initializes the compression dictionary from the given byte sequence without producing any compressed output.
    Syntax
    'Declaration
     
    
    Public Function deflateSetDictionary( _
       ByVal dictionary() As Byte, _
       ByVal dictLength As Integer _
    ) As Integer
    public int deflateSetDictionary( 
       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 deflateInit(Int32), before any call to deflate.

    The compressor and decompressor must use exactly the same dictionary (see inflateSetDictionary).

    See Also