[]
        
(Showing Draft Content)

C1.Zip.C1ZStreamReader.Read

Read Method

Read(byte[], int, int)

Reads a sequence of bytes from the underlying compressed stream, decompressing them into a buffer, then advances the position within the stream by the number of bytes read.

Declaration
public override int Read(byte[] buf, int offset, int count)
Parameters
Type Name Description
byte[] buf

An array of bytes. When this method returns, buf contains the specified byte array with the values between offsetand (offset + count) replaced by the uncompressed data read from the stream.

int offset

The zero-based byte offset in buf at which to begin storing the data read from the current stream.

int count

The maximum number of (decompressed) bytes to be read from the current stream.

Returns
Type Description
int

The total number of bytes read into the buffer. This may 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.

Overrides