DeflateStream.Read Method (Byte[], Int32, Int32)
.NET Framework (current version)
Reads a number of decompressed bytes into the specified byte array.
Assembly: System (in System.dll)
Parameters
- array
-
Type:
System.Byte[]
The array to store decompressed bytes.
- offset
-
Type:
System.Int32
The byte offset in array at which the read bytes will be placed.
- count
-
Type:
System.Int32
The maximum number of decompressed bytes to read.
| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| InvalidOperationException | The CompressionMode value was Compress when the object was created. - or - The underlying stream does not support reading. |
| ArgumentOutOfRangeException | offset or count is less than zero. -or- array length minus the index starting point is less than count. |
| InvalidDataException | The data is in an invalid format. |
| ObjectDisposedException | The stream is closed. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: