A bzip2 decompressor.
More...
◆ Decompressor()
◆ read()
int fm.liveswitch.bzip2.Decompressor.read |
( |
byte[] |
buffer, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
Read data from the stream.
To decompress a BZip2 data stream, create a {0},
providing a stream that reads compressed data. Then call Read() on
that {1}, and the data read will be decompressed
as you read.
A {2} can be used only for {3}, not for {4}.
- Parameters
-
buffer | The buffer into which the read data should be placed. |
offset | the offset within that data array to put the first byte read. |
count | the number of bytes to read. |
- Returns
- the number of bytes actually read
◆ readByte()
int fm.liveswitch.bzip2.Decompressor.readByte |
( |
| ) |
|
Read a single byte from the stream.
- Returns
- the byte read from the stream, or -1 if EOF