fm.liveswitch.bzip2.Decompressor Class Reference

A bzip2 decompressor. More...

Public Member Functions

 Decompressor (fm.liveswitch.DataBuffer input)
 Initializes a new instance of the fm.liveswitch.bzip2.Decompressor class. More...
 
int read (byte[] buffer, int offset, int count)
 Read data from the stream. More...
 
int readByte ()
 Read a single byte from the stream. More...
 

Detailed Description

A bzip2 decompressor.

Constructor & Destructor Documentation

◆ Decompressor()

fm.liveswitch.bzip2.Decompressor.Decompressor ( fm.liveswitch.DataBuffer  input)

Initializes a new instance of the fm.liveswitch.bzip2.Decompressor class.

Parameters
inputThe input.

Member Function Documentation

◆ 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
bufferThe buffer into which the read data should be placed.
offsetthe offset within that data array to put the first byte read.
countthe 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