[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: 0.6.0.0 (0.6.0.0)

Syntax

C#
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++
public:
virtual int Read(
	array<unsigned char>^ buffer, 
	int offset, 
	int count
) override

Parameters

buffer
Type: array< System..::.Byte >[]()[]
Array that will receive the data read from the stream.
offset
Type: System..::.Int32
The position in the buffer where the first byte will be written.
count
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