|
WXP C++ Library Version 6.74.9
|
This class manages zlib decompression. More...
#include "../include/Zlib.h"
Public Types | |
| enum | Type { 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.
| enum WXP::Zlib::Type |
File type
| Enumerator | |
|---|---|
| COMP | Compress data |
| DECOMP | Decompress data |
| 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::GiniFile::readData(), WXP::ImgWxpFile::readData(), and WXP::GiniFile::readHeader().
| int Zlib::finish | ( | ) |
End compression of data
References DECOMP.
Referenced by WXP::GiniFile::readData(), WXP::ImgWxpFile::readData(), and WXP::ImgWxpFile::write().
|
inline |
Returns available bytes not processed
Referenced by WXP::ImgWxpFile::readData().
|
inline |
Returns available bytes out
Referenced by WXP::ImgWxpFile::readData().
|
inline |
Returns status
Referenced by WXP::GiniFile::readData().
|
inline |
Returns total bytes output
Referenced by WXP::ImgWxpFile::write().
| int Zlib::init | ( | ) |
Initializes data
References DECOMP.
Referenced by WXP::GiniFile::readData(), WXP::GiniFile::readHeader(), WXP::ImgWxpFile::write(), Zlib(), and Zlib().
|
inline |
Returns if there was an error
Referenced by WXP::GiniFile::readData(), and WXP::ImgWxpFile::readData().
| int Zlib::print | ( | ) |
Prints Zlib parameters
References DECOMP.
Referenced by WXP::GiniFile::readData(), WXP::ImgWxpFile::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().
|
static |
Finish compression of data
Referenced by WXP::ImgWxpFile::write().
|
static |
Need dictionary error
|
static |
End of stream status
Referenced by WXP::GiniFile::readData().