Sdílet prostřednictvím


Decompressor Class

Definition

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

public ref class Decompressor sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(Windows.Storage.Compression.IDecompressorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class Decompressor final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Storage.Compression.IDecompressorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class Decompressor final : IClosable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Storage.Compression.IDecompressorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class Decompressor : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Storage.Compression.IDecompressorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class Decompressor : System.IDisposable
function Decompressor(underlyingStream)
Public NotInheritable Class Decompressor
Implements IDisposable
Inheritance
Object Platform::Object IInspectable Decompressor
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

Decompressor(IInputStream)

This method creates an instance of a decompressor.

Methods

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()

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()

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

ReadAsync(IBuffer, UInt32, InputStreamOptions)

Reads from the compression stream asynchronously.

Applies to

See also