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

deflateParams() public method

Dynamically update the compression level and compression strategy. The interpretation of level is as in deflateInit(int). This can be used to switch between compression and straight copy of the input data, or to switch to a different kind of input data requiring a different strategy. If the compression level is changed, the input available so far is compressed with the old level (and may be flushed); the new level will take effect only at the next call of deflate
Before the call of deflateParams, the stream state must be set as for a call of deflate, since the currently available input may have to be compressed and flushed. In particular, avail_out must be non-zero.
public deflateParams ( int level, CompressionStrategy strategy ) : int
level int An integer value indicating the desired compression level.
strategy CompressionStrategy A flush strategy to use.
return int
		public int deflateParams(int level, CompressionStrategy strategy)
		{
			if (_dstate == null)
				return (int)ZLibResultCode.Z_STREAM_ERROR;
			return _dstate.deflateParams(this, level, strategy);
		}