Click or drag to resize

MemoryStreamWrite Method

Writes a block of bytes to the current stream using data read from buffer.

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

Parameters

buffer  Byte
The buffer to write data from.
offset  Int32
The byte offset in buffer at which to begin writing from.
count  Int32
The maximum number of bytes to write.
Exceptions
ExceptionCondition
ArgumentNullException buffer is null.
NotSupportedException The stream does not support writing. For additional information see CrestronIO.Stream.CanWrite.-or- The current position is closer than count bytes to the end of the stream, and the capacity cannot be modified.
ArgumentException offset subtracted from the buffer length is less than count.
ArgumentOutOfRangeException offset or count are negative.
IOException An I/O error occurs.
ObjectDisposedException The current stream instance is closed.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also