System.Security.Cryptography.CryptoStream.Read Method

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Syntax

public override int Read (byte[] buffer, int offset, int count)

Parameters

buffer
An array of bytes. A maximum of count bytes are read from the current stream and stored in buffer.
offset
The byte offset in buffer at which to begin storing the data read from the current stream.
count
The maximum number of bytes to be read from the current stream.

Returns

The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream has been reached.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0