CompressDeflate Method
Definition
- Assemblies
- Cuemon.IO.dll
CompressDeflate(IDecorator<Stream>, Action<StreamCompressionOptions>)
Compress the enclosed Stream of the specified decorator using the Deflate algorithm.
public static Stream CompressDeflate(this IDecorator<Stream> decorator, Action<StreamCompressionOptions> setup = null)
Parameters
decoratorIDecorator<Stream>The IDecorator<T> to extend.
setupAction<StreamCompressionOptions>The StreamCompressionOptions which may be configured.
Returns
Exceptions
- ArgumentNullException
decoratorcannot be null.- ArgumentException
The enclosed Stream of
decoratordoes not support write operations such as compression.