BinaryReader: ReadBytes

ReadBytes

Reads the specified number of bytes from the stream and returns them in an array.

 Public Function ReadBytes(
	  ByVal Count As Long ) As Byte ( )

Parameters

Count
[ByVal] Long. The number of bytes to read from the stream.

Return Values

Byte() -  A byte array containing the bytes read from the stream.

Remarks

If not enough bytes are in the stream, then the remaining bytes are returned. If there are no bytes in the stream, then an empty array is returned, not a null array.

See Also

Project VBCorLib Overview | Class BinaryReader Overview