public Read ( object clientData, byte buffer, int offset, int count ) : int | ||
clientData | object | A client data (by default, an underlying stream). |
buffer | byte | An array of bytes. When this method returns, the
/// |
offset | int | The zero-based byte offset in |
count | int | The maximum number of bytes to be read from the current stream. |
Результат | int |
public virtual int Read(object clientData, byte[] buffer, int offset, int count)
{
Stream stream = clientData as Stream;
if (stream == null)
throw new ArgumentException("Can't get underlying stream to read from");
return stream.Read(buffer, offset, count);
}