Read Method (buffer, offset, count)

DotNetZip

Ionic Zip Library v1.9.1.6 Read Method (buffer, offset, count)
ReferenceIonic.ZlibZlibStreamRead(array<Byte>[]()[][], Int32, Int32)
Read data from the stream.
Declaration Syntax
C# Visual Basic Visual C++
public override int Read(
	byte[] buffer,
	int offset,
	int count
)
Public Overrides Function Read ( _
	buffer As Byte(), _
	offset As Integer, _
	count As Integer _
) As Integer
public:
virtual int Read(
	array<unsigned char>^ buffer, 
	int offset, 
	int count
) override
Parameters
buffer (array<Byte>[]()[][])
The buffer into which the read data should be placed.
offset (Int32)
the offset within that data array to put the first byte read.
count (Int32)
the number of bytes to read.
Return Value
the number of bytes read
Remarks

If you wish to use the ZlibStream to compress data while reading, you can create a ZlibStream with CompressionMode.Compress, providing an uncompressed data stream. Then call Read() on that ZlibStream, and the data read will be compressed. If you wish to use the ZlibStream to decompress data while reading, you can create a ZlibStream with CompressionMode.Decompress, providing a readable compressed data stream. Then call Read() on that ZlibStream, and the data will be decompressed as it is read.

A ZlibStream can be used for Read() or Write(), but not both.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)