Read Method (buffer, offset, count)

DotNetZip

Ionic Zip Library v1.9.1.6 Read Method (buffer, offset, count)
ReferenceIonic.BZip2BZip2InputStreamRead(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 actually read
Remarks

To decompress a BZip2 data stream, create a BZip2InputStream, providing a stream that reads compressed data. Then call Read() on that BZip2InputStream, and the data read will be decompressed as you read.

A BZip2InputStream can be used only for Read(), not for Write().

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