Click or drag to resize

BinaryReaderReadBytes Method

Reads the specified number of bytes from the current file into a byte array and moves the file pointer forward by the number of bytes read.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public virtual byte[] ReadBytes(
	int numberOfBytesToRead
)

Parameters

numberOfBytesToRead  Int32
The number of bytes to read.

Return Value

Byte
A byte array containing the bytes read from the file.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe numberOfBytesToRead is negative.
IOExceptionAn I/O error occurred.
ObjectDisposedExceptionThe file is closed.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also