Click or drag to resize

GZipStreamRead Method

Reads a number of decompressed bytes into the specified byte array.

Namespace: Crestron.SimplSharp.CrestronIO.Compression
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public override int Read(
	byte[] array,
	int offset,
	int count
)

Parameters

array  Byte
The array used to store decompressed bytes.
offset  Int32
The location in the array to begin reading.
count  Int32
The number of bytes decompressed.

Return Value

Int32
The number of bytes that were decompressed into the byte array. If the end of the stream has been reached, zero or the number of bytes read is returned.
Exceptions
ExceptionCondition
ArgumentNullException array is null.
InvalidOperationException The System.IO.Compression.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.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also