DecompressDeflateAsync Method
Definition
- Assemblies
- Cuemon.IO.dll
DecompressDeflateAsync(IDecorator<Stream>, Action<AsyncStreamCopyOptions>)
Decompress the enclosed Stream of the specified decorator using Deflate data format specification.
public static Task<Stream> DecompressDeflateAsync(this IDecorator<Stream> decorator, Action<AsyncStreamCopyOptions> setup = null)
Parameters
decoratorIDecorator<Stream>The IDecorator<T> to extend.
setupAction<AsyncStreamCopyOptions>The AsyncStreamCopyOptions which may be configured.
Returns
- Task<Stream>
A task that represents the asynchronous operation. The task result contains a decompressed version of the enclosed Stream of the specified
decorator.
Exceptions
- ArgumentNullException
decoratorcannot be null.- ArgumentException
The enclosed Stream of
decoratordoes not support write operations such as compression.- InvalidDataException
The enclosed Stream of
decoratorwas compressed using an unsupported compression method.