System.IO.Compression.GZipStream.Read Method

Reads a number of decompressed bytes into the specified byte array.

Syntax

public override int Read (byte[] dest, int dest_offset, int count)

Parameters

dest
Documentation for this section has not yet been entered.
dest_offset
Documentation for this section has not yet been entered.
count
The maximum number of decompressed bytes to read.

Returns

The number of bytes that were decompressed into the byte array. If the end of the stream has been reached, zero or the number of bytes read is returned.

Remarks

If data is found in an invalid format, an System.IO.InvalidDataException is thrown as one of the last operations. A cyclic redundancy check (CRC) is performed as one of the last operations of this method.

Requirements

Namespace: System.IO.Compression
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0