Click or drag to resize

BinaryReaderRead(Byte, Int32, Int32) Method

Reads count bytes from the stream with index as the starting point in the byte array.

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

Parameters

buffer  Byte
The buffer to read data into.
index  Int32
The starting point in the buffer at which to begin reading into the buffer.
count  Int32
The number of characters to read.

Return Value

Int32
The number of characters read into buffer. This might be less than the number of bytes requested if that many bytes are not available, or it might be zero if the end of the stream is reached.
Exceptions
ExceptionCondition
ArgumentException The buffer length minus index is less than count.
ArgumentNullException buffer is null.
ArgumentOutOfRangeException index or count is negative.
ObjectDisposedException The stream is closed.
IOException An I/O error occurs.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also