Reads a sequence of items from the current stream and advances the position within the stream by the number of items read. Use the stride parameter to control advancing of the position after one item has been read.

Namespace: VVVV.Utils.Streams
Assembly: VVVV.Utils (in VVVV.Utils.dll) Version: 1.0.4694.10871

Syntax

C#
int Read(
	T[] buffer,
	int offset,
	int length,
	int stride
)

Parameters

buffer
Type: array<T>[]()[][]
The buffer to read into.
offset
Type: System..::..Int32
The zero-based offset in buffer at which to begin storing the data read from the current stream.
length
Type: System..::..Int32
The maximum number of items to be read from the current stream.
stride
Type: System..::..Int32
The stride by which the position is advanced after reading one item.

Return Value

The total number of items read into the buffer. This can be less than the number of items requested if that many items are not currently available, or zero (0) if the end of the stream has been reached.

See Also