private SetParams ( CompressionLevel level, CompressionStrategy strategy ) : int | ||
level | CompressionLevel | |
strategy | CompressionStrategy | |
Résultat | int |
/// <summary> /// Set the CompressionStrategy and CompressionLevel for a deflation session. /// </summary> /// <param name="level">the level of compression to use.</param> /// <param name="strategy">the strategy to use for compression.</param> /// <returns>Z_OK if all goes well.</returns> public int SetDeflateParams(CompressionLevel level, CompressionStrategy strategy) { if (dstate == null) { throw new ZlibException("No Deflate State!"); } return(dstate.SetParams(level, strategy)); }