Click or drag to resize

MemoryStream(Byte, Int32, Int32, Boolean) Constructor

Initializes a new non-resizable instance of the CrestronIO.MemoryStream class based on the specified region of a byte array, with the CrestronIO.MemoryStream.CanWrite property set as specified.

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

Parameters

buffer  Byte
The array of unsigned bytes from which to create this stream.
index  Int32
The index in buffer at which the stream begins.
count  Int32
The length of the stream in bytes.
writable  Boolean
The setting of the CrestronIO.MemoryStream.CanWrite property, which determines whether the stream supports writing.
Exceptions
ExceptionCondition
ArgumentNullException buffer is null.
ArgumentOutOfRangeException index or count are negative.
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