Decompressor 类

定义

解压缩程序采用压缩器压缩的流并对其进行解压缩。

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
继承
Object Platform::Object IInspectable Decompressor
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

Decompressor(IInputStream)

此方法创建解压缩程序的实例。

方法

Close()

关闭 Decompressor 对象并同步放弃缓冲区中的任何信息。 这也会关闭基础流,除非已使用 Decompressor.Detach 方法从 对象分离流。 对关闭的对象(除外)的后续调用将失败。

DetachStream()

从 Decompressor 对象分离基础流,以便可以使用 Decompressor.Close 方法关闭对象,而无需同时关闭基础流。

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

ReadAsync(IBuffer, UInt32, InputStreamOptions)

异步从压缩流读取。

适用于

另请参阅