CryptoStream: ReadBlock |
Reads a sequence of bytes from the current CryptoStream and advances the position within the stream by the number of bytes read.
Public Function ReadBlock( ByRef Buffer ( ) As Byte, ByVal Offset As Long, ByVal Count As Long ) As Long
Exception | Condition |
---|---|
NotSupportedException | The CryptoStreamMode associated with current CryptoStream object does not match the underlying stream. For example, this exception is thrown when using ReadMode with an underlying stream that is write only. |
ArgumentOutOfRangeException |
The Offset parameter is less than zero. -or- The Count parameter is less than zero. |
ArgumentException | The sum of the Count and Offset parameters is longer than the length of the Buffer. |