Decompressor Decompressor Decompressor Decompressor Decompressor Class

Definition

A decompressor takes a stream compressed by a compressor and decompresses it.

public : sealed class Decompressor : IClosable, IDecompressor, IInputStream
struct winrt::Windows::Storage::Compression::Decompressor : IClosable, IDecompressor, IInputStream
public sealed class Decompressor : IDisposable, IDecompressor, IInputStream
Public NotInheritable Class Decompressor Implements IDisposable, IDecompressor, IInputStream
var decompressor = new decompressor(underlyingStream);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

Decompressor(IInputStream) Decompressor(IInputStream) Decompressor(IInputStream) Decompressor(IInputStream) Decompressor(IInputStream)

This method creates an instance of a decompressor.

Methods

Close() Close() Close() Close() Close()

Closes a Decompressor object and synchronously discards any information in buffers. This will close the underlying stream as well unless the Decompressor.Detach method has been used to detach the stream from the object. Subsequent calls on a closed object, except , will fail.

DetachStream() DetachStream() DetachStream() DetachStream() DetachStream()

Detaches the underlying stream from the Decompressor object so that the object can be closed using the Decompressor.Close method without also closing the underlying stream.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ReadAsync(IBuffer, UInt32, InputStreamOptions) ReadAsync(IBuffer, UInt32, InputStreamOptions) ReadAsync(IBuffer, UInt32, InputStreamOptions) ReadAsync(IBuffer, UInt32, InputStreamOptions) ReadAsync(IBuffer, UInt32, InputStreamOptions)

Reads from the compression stream asynchronously.

See also