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 Overrides Function Read( _
ByVal () As System.Byte, _
ByVal As System.Integer, _
ByVal As System.Integer _
) As System.Integer
public override System.int Read(
System.byte[] ,
System.int ,
System.int
)
Parameters
- buf
- An array of bytes. When this method returns, contains the specified byte array with the values between and ( + ) replaced by the uncompressed data read from the stream.
- offset
- The zero-based byte offset in 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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2