ComponentOne Zip for .NET
Read Method (C1ZStreamReader)

C1.C1Zip.4 Assembly > C1.C1Zip Namespace > C1ZStreamReader Class : Read Method
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.
The zero-based byte offset in buf at which to begin storing the data read from the current stream.
The maximum number of (decompressed) bytes to be read from the current stream.
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.
Syntax
Public Overrides Function Read( _
   ByVal buf() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Integer
public override int Read( 
   byte[] buf,
   int offset,
   int count
)

Parameters

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.
offset
The zero-based byte offset in buf at which to begin storing the data read from the current stream.
count
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

Reference

C1ZStreamReader Class
C1ZStreamReader Members