DecompressionStream.Read Method
Namespace: Rebex.IO.Compression.Streams
Assembly: Rebex.Zip.dll (version 7.0.9119)
Read(Byte[], Int32, Int32)
Reads data from the underlying stream, decompressing them during the process.
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | An array of bytes to fill with decompressed data. |
Int32 | offset | The zero-based byte offset in the buffer at which to copy bytes read from the stream. |
Int32 | count | The maximum number of bytes to be read into the buffer. |
Returns
Type | Description |
---|---|
Int32 | The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. |