Mentalis.org Security Library documentation

SecureNetworkStream.Read Method 

Reads data from the stream.

[Visual Basic]
Overrides Public Function Read( _
   ByVal buffer As Byte(), _
   ByVal offset As Integer, _
   ByVal size As Integer _
) As Integer
[C#]
public override int Read(
   byte[] buffer,
   int offset,
   int size
);

Parameters

buffer
The location in memory to store data read from the stream.
offset
The location in the buffer to begin storing the data to.
size
The number of bytes to read from the stream.

Return Value

The number of bytes read from the stream.

Exceptions

Exception TypeCondition
ArgumentNullExceptionbuffer is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionThe specified offset or size exceeds the size of buffer.
IOExceptionThere is a failure while reading from the network.

See Also

SecureNetworkStream Class | SecureNetworkStream Members | Org.Mentalis.Security.Ssl Namespace