Decompressor Decompressor Decompressor Decompressor Class

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

Syntax

Declaration

public sealed class Decompressorpublic sealed class DecompressorPublic NotInheritable Class Decompressorpublic sealed class Decompressor

Constructors summary

This method creates an instance of a decompressor.

Methods summary

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

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

Reads from the compression stream asynchronously.

Constructors

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

    This method creates an instance of a decompressor.

    public Decompressor(IInputStream underlyingStream)public New(IInputStream underlyingStream)Public Sub New(underlyingStream As IInputStream)public Decompressor(IInputStream underlyingStream)

    Parameters

Methods

  • 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 DetachStream() method has been used to detach the stream from the object. Subsequent calls on a closed object, except , will fail.

    public void Close()public void Close()Public Function Close() As voidpublic void Close()
  • DetachStream()
    DetachStream()
    DetachStream()
    DetachStream()

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

    public IInputStream DetachStream()public IInputStream DetachStream()Public Function DetachStream() As IInputStreampublic IInputStream DetachStream()

    Returns

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

    Reads from the compression stream asynchronously.

    public IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(IBuffer buffer, UInt32 count, InputStreamOptions options)public IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(IBuffer buffer, UInt32 count, InputStreamOptions options)Public Function ReadAsync(buffer As IBuffer, count As UInt32, options As InputStreamOptions) As IAsyncOperationWithProgress( Of IBuffer, uint )public IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(IBuffer buffer, UInt32 count, InputStreamOptions options)

    Parameters

    Returns

    • The asynchronous operation.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Storage.Compression.dll