ComponentAce.Compression.Libs.ZLib.ZStream.inflateSetDictionary C# (CSharp) Method

inflateSetDictionary() public method

Initializes the decompression dictionary from the given uncompressed byte sequence. This function must be called immediately after a call of inflate if this call returned ZLibResultCode.Z_NEED_DICT. The dictionary chosen by the compressor can be determined from the Adler32 value returned by this call of inflate. The compressor and decompresser must use exactly the same dictionary.
public inflateSetDictionary ( byte dictionary, int dictLength ) : int
dictionary byte A byte array - a dictionary.
dictLength int The length of the dictionary.
return int
		public int inflateSetDictionary(byte[] dictionary, int dictLength)
		{
			if (_istate == null)
				return (int)ZLibResultCode.Z_STREAM_ERROR;
			return _istate.inflateSetDictionary(this, dictionary, dictLength);
		}