/// <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!"); }