Click or drag to resize

MemoryStream(Byte, Int32, Int32) Constructor

Initializes a new non-resizable instance of the CrestronIO.MemoryStream class based on the specified region (index) of a byte array.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public MemoryStream(
	byte[] buffer,
	int index,
	int count
)

Parameters

buffer  Byte
The array of unsigned bytes from which to create this stream.
index  Int32
The index into buffer at which the stream begins.
count  Int32
The length of the stream in bytes.
Exceptions
ExceptionCondition
ArgumentNullException buffer is null.
ArgumentOutOfRangeException index or count is less than zero.
ArgumentException The sum of index and count is greater than the length of buffer.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also