Click or drag to resize

StreamsReadBytes Method

Reads a byte array from supplied stream.

Namespace:  OBCOM.NetSwitchLib.Utils
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public static byte[] ReadBytes(
	Stream stream,
	int length
)

Parameters

stream
Type: System.IOStream
The stream that will be read.
length
Type: SystemInt32
The number of bytes to read from stream.

Return Value

Type: Byte
The byte array read from supplied stream.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
ArgumentOutOfRangeExceptionlength is negative.
EndOfStreamExceptionstream is missing bytes.
See Also