Reads a block of bytes from the stream and writes the data in a given buffer.
'Declaration
Public Overloads Function Read( _
ByVal As System.IntPtr, _
ByVal As System.Integer, _
ByVal As System.Integer _
) As System.Integer
public System.int Read(
System.IntPtr ,
System.int ,
System.int
)
Parameters
- buffer
- When this method returns, contains the specified buffer 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 the read bytes will be placed.
- 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.