Noemax DotNetGZip Report an issue | Discuss in forums
GZipStream.Read(byte[],int,int) Method
See Also 
Noemax.GZip Assembly > Noemax.GZip Namespace > GZipStream Class : Read Method



buffer
An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the decompressed bytes read from the current source.
offset
The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
count
The maximum number of bytes to be read from the current stream.
Reads a number of decompressed bytes into the specified byte array.


Namespace: Noemax.GZip
Assembly: Noemax.GZip (in Noemax.GZip.dll)

Syntax

Visual Basic (Declaration) 
Overrides Public Function Read( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As GZipStream
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.Read(buffer, offset, count)
C# 
public override int Read( 
   byte[] buffer,
   int offset,
   int count
)
C++/CLI 
public:
int Read( 
   array<byte>^ buffer,
   int offset,
   int count
) override 

Parameters

buffer
An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the decompressed bytes read from the current source.
offset
The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
count
The maximum number of bytes to be read from the current stream.

Return Value

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.

Remarks

If data is found in an invalid format, an IOException is thrown.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

GZipStream Class
GZipStream Members
Base Implementation in System.IO.Stream