Overridden. Reads a block of bytes from the stream and writes the data in a given buffer.
[Visual Basic] Overrides Public Function Read( _ ByVal buffer As Byte(), _ ByVal offset As Integer, _ ByVal count As Integer _ ) As Integer
[C#] public override int Read( byte[]buffer, intoffset, intcount );
Parameters
buffer
When this method returns, contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.
offset
The byte offset in array at which to begin reading.
count
The maximum number of bytes to read.
Return Value
The total number of bytes read into the buffer. This might be less than the number of bytes requested if that number of bytes are not currently available, or zero if the end of the stream is reached.