GZipStream.Read Method

DotZLib

DotZLib .Net wrapper for ZLib1.dll

GZipStream.Read Method 

Attempts to read a number of bytes from the stream.

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

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