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

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

Syntax

C#
public static int Write<T>(
	this IStreamWriter<T> writer,
	ArraySegment<T> segment,
	int stride
)

Parameters

writer
Type: VVVV.Utils.Streams..::..IStreamWriter<(Of <(<'T>)>)>
The writer to use for writing.
segment
Type: System..::..ArraySegment<(Of <(<'T>)>)>
The array segment to copy from.
stride
Type: System..::..Int32
The stride by which the position is advanced after writing one item.

Type Parameters

T

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

Return Value

The total number of items written to the stream. This can be less than the number of items requested if 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 IStreamWriter<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also