FMIceLinkBZip2Decompressor Class Reference

Inherits from NSObject
Declared in FMIceLinkBZip2Decompressor.h
FMIceLinkBZip2Decompressor.m

Overview

A bzip2 decompressor.

+ decompressorWithInput:

Initializes a new instance of the FMIceLinkBZip2Decompressor class.
+ (FMIceLinkBZip2Decompressor *)decompressorWithInput:(FMIceLinkDataBuffer *)input

Parameters

input

The input.

Discussion

Initializes a new instance of the FMIceLinkBZip2Decompressor class.

Declared In

FMIceLinkBZip2Decompressor.h

– initWithInput:

Initializes a new instance of the FMIceLinkBZip2Decompressor class.
- (instancetype)initWithInput:(FMIceLinkDataBuffer *)input

Parameters

input

The input.

Discussion

Initializes a new instance of the FMIceLinkBZip2Decompressor class.

Declared In

FMIceLinkBZip2Decompressor.h

– readByte

Read a single byte from the stream.
- (int)readByte

Return Value

the byte read from the stream, or -1 if EOF

Discussion

Read a single byte from the stream.

Declared In

FMIceLinkBZip2Decompressor.h

– readWithBuffer:offset:count:

Read data from the stream.

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().

- (int)readWithBuffer:(NSMutableData *)buffer offset:(int)offset count:(int)count

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.

Return Value

the number of bytes actually read

Discussion

Read data from the stream.

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().

Declared In

FMIceLinkBZip2Decompressor.h