CryptoStream: ReadBlock

ReadBlock

Reads a requested amount of data from the stream.



 Public Function ReadBlock(
	  ByRef Buffer ( ) As Byte,
	  ByVal offset As Long,
	  ByVal Count As Long ) As Long

Parameters

Buffer
[ByRef] Byte. The byte array that will receive the requested data.
offset
[ByVal] Long. The starting index within Buffer to begin writing data.
Count
[ByVal] Long. The number of bytes to read.

Return Values

Long -  The actual number of bytes read.

Remarks

The number of bytes read may be less than the actual number of bytes requested.

See Also

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