[This is preliminary documentation and is subject to change.]

Read count bytes from the current position in the stream, and place them into the buffer starting at the given offset. The position will be updated to the point after the last byte read.

Namespace:  MPI
Assembly:  MPI (in MPI.dll)
Version: (


public override int Read(
	byte[] buffer,
	int offset,
	int count
Visual Basic (Declaration)
Public Overrides Function Read ( _
	buffer As Byte(), _
	offset As Integer, _
	count As Integer _
) As Integer
Visual C++
virtual int Read(
	array<unsigned char>^ buffer, 
	int offset, 
	int count
) override


Type: array< System..::.Byte >[]()[]
Array that will receive the data read from the stream.
Type: System..::.Int32
The position in the buffer where the first byte will be written.
Type: System..::.Int32
The maximum number of bytes to copy into the buffer.

Return Value

The actual number of bytes read into the buffer.

See Also