Click or drag to resize

BinaryWriterWrite(Byte, Int32, Int32) Method

Writes a region of a byte array to the current file.

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

Parameters

buffer  Byte
A byte array containing the data to write.
index  Int32
The starting point in buffer at which to begin writing.
count  Int32
The number of bytes to write.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
ObjectDisposedExceptionThe file is closed.
ArgumentExceptionThe buffer length minus index is less than count.
ArgumentNullExceptionbuffer is null.
ArgumentOutOfRangeExceptionindex or count is negative.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also