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.

Namespace:  C1.C1Zip
Assembly:  C1.Silverlight.Zip (in C1.Silverlight.Zip.dll)

Syntax

C#
public override int Read(
	byte[] buf,
	int offset,
	int count
)
Visual Basic
Public Overrides Function Read ( _
	buf As Byte(), _
	offset As Integer, _
	count As Integer _
) As Integer

Parameters

buf
Type: array<System..::..Byte>[]()[][]
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.
offset
Type: System..::..Int32
The zero-based byte offset in buf at which to begin storing the data read from the current stream.
count
Type: System..::..Int32
The maximum number of (decompressed) bytes to be read from the current stream.

Return Value

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.

See Also