Attempts to read a number of bytes from the stream.
Parameters
- buffer
- The destination data buffer
- offset
- The index of the first destination byte in
buffer - count
- The number of bytes requested
Return Value
The number of bytes read
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentNullException | If buffer is null |
| ArgumentOutOfRangeException | If count or offset are negative |
| ArgumentException | If offset + count is > buffer.Length |
| NotSupportedException | If this stream is not readable. |
| ObjectDisposedException | If this stream has been disposed. |
See Also
GZipStream Class | DotZLib Namespace