Click or drag to resize

StringReaderReadBlock Method

Reads a maximum of count characters from the current stream, and writes the data to buffer, beginning at index.

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

Parameters

buffer  Char
When this method returns, this parameter contains the specified character array with the values between index and (index + count -1) replaced by the characters read from the current source.
index  Int32
The place in buffer at which to begin writing.
count  Int32
The maximum number of characters to read.

Return Value

Int32
The position of the underlying stream is advanced by the number of characters that were read into buffer.The number of characters that have been read. The number will be less than or equal to count, depending on whether all input characters have been read.
Exceptions
ExceptionCondition
ArgumentNullException buffer is null.
ArgumentException The buffer length minus index is less than count.
ArgumentOutOfRangeException index or count is negative.
ObjectDisposedException The CrestronIO.TextReader is closed.
IOException An I/O error occurs.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also