Skip to main content
Decompressor class

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

Syntax


var decompressor = new Windows.Storage.Compression.Decompressor();

public sealed class Decompressor : IInputStream,
    IDisposable

Public NotInheritable Class Decompressor
    Implements IInputStream, _
    IDisposable

public ref class Decompressor sealed : IInputStream,
    IClosable

Members

The Decompressor class has these types of members:

Constructors

The Decompressor class has these constructors.

ConstructorDescription
Decompressor This method creates an instance of a decompressor.

 

Methods

The Decompressor class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Close [C++, JavaScript]Closes a Decompressor object and synchronously discards any information in buffers.
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 [C#, VB]Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
ReadAsync Reads from the compression stream asynchronously.

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Storage.Compression
Windows::Storage::Compression [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Storage.Compression
Windows::Storage::Compression [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Version(0x06020000)]

See also

Object
IInputStream
IClosable