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#
public static int Read<T>(
	this IStreamReader<T> reader,
	ArraySegment<T> segment,
	int stride
)

Parameters

reader
Type: VVVV.Utils.Streams..::..IStreamReader<(Of <(<'T>)>)>
The reader to use from reading.
segment
Type: System..::..ArraySegment<(Of <(<'T>)>)>
The array segment to read into.
stride
Type: System..::..Int32
The stride by which the position is advanced after reading one item.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:VVVV.Utils.Streams.StreamReaderExtensions.Read``1(VVVV.Utils.Streams.IStreamReader{``0},System.ArraySegment{``0},System.Int32)"]

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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IStreamReader<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also