A bzip2 decompressor.
More...
◆ decompressorWithInput:
◆ initWithInput:
◆ readByte
Read a single byte from the stream.
- Returns
- the byte read from the stream, or -1 if EOF
◆ readWithBuffer:offset:count:
- (int) readWithBuffer: |
|
(NSMutableData *) |
buffer |
offset: |
|
(int) |
offset |
count: |
|
(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