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.
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.

Remarks

See Also

Project VBCorLib Overview Class FileStream Overview FileStream Properties FileStream Methods Position (let) ReadByte