Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

DecompressionStream Class

Namespace: Rebex.IO.Compression.Streams
Assembly: Rebex.Zip.dll (version 7.0.9119)

Provides a stream that uses specified compressed data format to decompress data. If opened for writing it decompresses specified data and writes the decompressed data into an underlying stream. If opened for reading it reads a compressed data from the underlying stream and returns a decompressed data.

Syntax
public class DecompressionStream : Stream, IAsyncDisposable, IDisposable
Inheritance
Object
MarshalByRefObject
Stream
DecompressionStream
GzipDecompressionStream
Implements
IAsyncDisposable
IDisposable
Inherited Members
Stream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
Stream.CanTimeout
Stream.Close()
Stream.CopyTo(Stream)
Stream.CopyTo(Stream, Int32)
Stream.CopyToAsync(Stream)
Stream.CopyToAsync(Stream, Int32)
Stream.CopyToAsync(Stream, Int32, CancellationToken)
Stream.CopyToAsync(Stream, CancellationToken)
Stream.CreateWaitHandle()
Stream.Dispose()
Stream.DisposeAsync()
Stream.EndRead(IAsyncResult)
Stream.EndWrite(IAsyncResult)
Stream.FlushAsync()
Stream.FlushAsync(CancellationToken)
Stream.Null
Stream.ObjectInvariant()
Stream.Read(Span<Byte>)
Stream.ReadAsync(Byte[], Int32, Int32)
Stream.ReadAsync(Byte[], Int32, Int32, CancellationToken)
Stream.ReadAsync(Memory<Byte>, CancellationToken)
Stream.ReadAtLeast(Span<Byte>, Int32, Boolean)
Stream.ReadAtLeastAsync(Memory<Byte>, Int32, Boolean, CancellationToken)
Stream.ReadByte()
Stream.ReadExactly(Byte[], Int32, Int32)
Stream.ReadExactly(Span<Byte>)
Stream.ReadExactlyAsync(Byte[], Int32, Int32, CancellationToken)
Stream.ReadExactlyAsync(Memory<Byte>, CancellationToken)
Stream.ReadTimeout
Stream.Synchronized(Stream)
Stream.ValidateBufferArguments(Byte[], Int32, Int32)
Stream.ValidateCopyToArguments(Stream, Int32)
Stream.Write(ReadOnlySpan<Byte>)
Stream.WriteAsync(Byte[], Int32, Int32)
Stream.WriteAsync(Byte[], Int32, Int32, CancellationToken)
Stream.WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)
Stream.WriteByte(Byte)
Stream.WriteTimeout
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(Boolean)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Constructors

Name Description
DecompressionStream(Stream, OpenMode, CompressionFormat, CompressionMethod)

Creates a new instance of DecompressionStream class.

Properties

Name Description
CanRead

Gets a value indicating whether the stream supports reading.

CanSeek

Gets a value indicating whether the stream supports seeking.

CanWrite

Gets a value indicating whether the stream supports writing.

Length

This property is not supported by the DecompressionStream class.

Position

This property is not supported by the DecompressionStream class.

Methods

Name Description
Dispose(Boolean)

Closes the underlying stream.

Flush()

Causes any buffered data to be written to the underlying stream.

Read(Byte[], Int32, Int32)

Reads data from the underlying stream, decompressing them during the process.

Seek(Int64, SeekOrigin)

This method is not supported by the DecompressionStream class.

SetLength(Int64)

This method is not supported by the DecompressionStream class.

Write(Byte[], Int32, Int32)

Writes a sequence of bytes into the stream. The sequence will be decompressed and the result written into the underlying stream.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies