Read Method (buffer, offset, count)

DotNetZip

Ionic Zip Library v1.9.1.6 Read Method (buffer, offset, count)
ReferenceIonic.ZipZipInputStreamRead(array<Byte>[]()[][], Int32, Int32)
Read the data from the stream into the buffer.
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 to hold the data read from the stream.
offset (Int32)
the offset within the buffer to copy the first byte read.
count (Int32)
the number of bytes to read.
Return Value
the number of bytes read, after decryption and decompression.
Remarks

The data for the zipentry will be decrypted and uncompressed, as necessary, before being copied into the buffer.

You must set the Password property before calling Read() the first time for an encrypted entry. To determine if an entry is encrypted and requires a password, check the ZipEntry.Encryption property.

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