This class manages zlib decompression. More...
#include "../include/Zlib.h"
Public Types | |
| enum | { COMP, DECOMP } |
Public Member Functions | |
| Zlib () | |
| Zlib (int rtype) | |
| int | init () |
| int | set (unsigned char *next_in, int avail_in, unsigned char *next_out, int avail_out) |
| int | decomp () |
| int | decomp (Buffer &in, Buffer &out) |
| int | comp (int flag) |
| int | finish () |
| int | print () |
| int | getStatus () |
| int | getAvailIn () |
| int | getAvailOut () |
| int | getTotalOut () |
| bool | isError () |
Static Public Attributes | |
| static int const | STREAM_END = Z_STREAM_END |
| static int const | NEED_DICT = Z_NEED_DICT |
| static int const | OK = Z_OK |
| static int const | FINISH = Z_FINISH |
This class manages zlib decompression.
| Zlib::Zlib | ( | ) |
| Zlib::Zlib | ( | int | rtype | ) |
| int Zlib::comp | ( | int | flag | ) |
Compresses the data
| flag | The compression output flag |
References DECOMP.
Referenced by WXP::ImgWxpFile::write().
| int Zlib::decomp | ( | ) |
Decompress the data from parameter entered in set()
References COMP.
Referenced by WXP::NidsFile::readBytes(), WXP::ImgWxpFile::readData(), WXP::GiniFile::readData(), and WXP::GiniFile::readHeader().
| int Zlib::finish | ( | ) |
| int WXP::Zlib::getAvailIn | ( | ) | [inline] |
Returns available bytes not processed
Referenced by WXP::ImgWxpFile::readData().
| int WXP::Zlib::getAvailOut | ( | ) | [inline] |
Returns available bytes out
Referenced by WXP::ImgWxpFile::readData().
| int WXP::Zlib::getStatus | ( | ) | [inline] |
Returns status
Referenced by WXP::NidsFile::readBytes(), and WXP::GiniFile::readData().
| int WXP::Zlib::getTotalOut | ( | ) | [inline] |
Returns total bytes output
Referenced by WXP::NidsFile::readBytes(), and WXP::ImgWxpFile::write().
| int Zlib::init | ( | ) |
Initializes data
References DECOMP.
Referenced by WXP::NidsFile::readBytes(), WXP::GiniFile::readData(), WXP::GiniFile::readHeader(), WXP::ImgWxpFile::write(), and Zlib().
| bool WXP::Zlib::isError | ( | ) | [inline] |
Returns if there was an error
Referenced by WXP::NidsFile::readBytes(), WXP::ImgWxpFile::readData(), and WXP::GiniFile::readData().
| int Zlib::print | ( | ) |
Prints Zlib parameters
References DECOMP.
Referenced by WXP::NidsFile::readBytes(), WXP::ImgWxpFile::readData(), WXP::GiniFile::readData(), and WXP::GiniFile::readHeader().
| int Zlib::set | ( | unsigned char * | next_in, | |
| int | avail_in, | |||
| unsigned char * | next_out, | |||
| int | avail_out | |||
| ) |
Sets the data parameters
| next_in | Pointer to next input data | |
| avail_in | Amount of bytes available to process | |
| next_out | Pointer to output buffer | |
| avail_out | Available space in output buffer |
Referenced by WXP::ImgWxpFile::readData(), and WXP::ImgWxpFile::write().
int const WXP::Zlib::FINISH = Z_FINISH [static] |
Finish compression of data
Referenced by WXP::ImgWxpFile::write().
int const WXP::Zlib::NEED_DICT = Z_NEED_DICT [static] |
Need dictionary error
Referenced by WXP::NidsFile::readBytes().
int const WXP::Zlib::OK = Z_OK [static] |
No error in processing
Referenced by Zlib().
int const WXP::Zlib::STREAM_END = Z_STREAM_END [static] |
End of stream status
Referenced by WXP::NidsFile::readBytes(), and WXP::GiniFile::readData().
1.6.1