SetDictionary() 개인적인 메소드

private SetDictionary ( byte dictionary ) : int
dictionary byte
리턴 int
예제 #1
0
        /// <summary>
        /// Set the dictionary to be used for either Inflation or Deflation.
        /// </summary>
        /// <param name="dictionary">The dictionary bytes to use.</param>
        /// <returns>Z_OK if all goes well.</returns>
        public int SetDictionary(byte[] dictionary)
        {
            if (istate != null)
            {
                return(istate.SetDictionary(dictionary));
            }

            if (dstate != null)
            {
                return(dstate.SetDictionary(dictionary));
            }

            throw new ZlibException("No Inflate or Deflate state!");
        }