Click or drag to resize

BinaryReaderRead(Char, Int32, Int32) Method

Reads count characters from the stream with index as the starting point in the character array.

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

Parameters

buffer  Char
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 total number of characters read into the buffer. This might be less than the number of characters requested if that many characters are not currently 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