FileStream: ReadBlock

ReadBlock

Reads a specified number of bytes into the given array.



 Public Function ReadBlock(
	  ByRef Bytes ( ) As Byte,
	  ByVal Offset As Long,
	  ByVal Count As Long ) As Long

Parameters

Bytes
[ByRef] Byte. The array to store the bytes that are read from the stream.
Offset
[ByVal] Long. The index in Buffer to begin storing bytes. Offset starts at LBound of Bytes.
Count
[ByVal] Long. The number of bytes to be read from the stream.

Return Values

Long -  The number of byte actually read from the stream.

See Also

Project CorLib Overview

Class FileStream Overview