Classes | |
struct | tsZLibHdr |
Gzip file header structure, see RFC 1952. More... | |
Enumerations | |
enum | teZlibErr { eeOK = 0, eeSTREAM_END = 1, eeNEED_DICT = 2, eeERRNO = (-1), eeSTREAM_ERROR = (-2), eeDATA_ERROR = (-3), eeMEM_ERROR = (-4), eeBUF_ERROR = (-5), eeVERSION_ERROR = (-6) } |
Functions | |
int | Compress (unsigned char *apDest, unsigned int *apDestLen, unsigned char *apSource, unsigned int anSourceLen) |
Compress a memory mapped image to a gzip compatible output image, including the necessary header for decoding by gzip versions 1.2.3 or higher. | |
int | UnCompress (unsigned char *apDest, unsigned int *apDestLen, unsigned char *apSource, unsigned int anSourceLen) |
UnCompresses a gzip image to a memory image. | |
Variables | |
int | zlib_major = 1 |
MityDSP ZLib library major version number (i.e. x in x.y.z). | |
int | zlib_minor = 0 |
MityDSP ZLib library minor version number (i.e. y in x.y.z). | |
int | zlib_build = 0 |
MityDSP ZLib library build version number (i.e. z in x.y.z). | |
const char * | zlib_str = "MityDSP ZLib Data Compression library, v1.0.0" |
MityDSP ZLib library version as a string. | |
const char * | zlib_date = __DATE__ |
MityDSP ZLib library build date. | |
const char * | zlib_time = __TIME__ |
MityDSP ZLib library build time. | |
static const unsigned int | GZ_HEADER_SIZE = 10 |
enum ZLib::teZlibErr |
int ZLib::Compress | ( | unsigned char * | apDest, | |
unsigned int * | apDestLen, | |||
unsigned char * | apSource, | |||
unsigned int | anSourceLen | |||
) |
Compress a memory mapped image to a gzip compatible output image, including the necessary header for decoding by gzip versions 1.2.3 or higher.
[out] | apDest | output image buffer |
[in,out] | apDestLen | number of bytes available in the buffer. On return, the number of bytes used to build the compresssed image. |
[in] | apSource | source data image |
[in] | anSourceLen | source data image length |
int ZLib::UnCompress | ( | unsigned char * | apDest, | |
unsigned int * | apDestLen, | |||
unsigned char * | apSource, | |||
unsigned int | anSourceLen | |||
) |
UnCompresses a gzip image to a memory image.
If a gzip file header is present, it will be parsed / skipped. Otherwise a raw zlib image may be used.
[out] | apDest | output image buffer |
[in,out] | apDestLen | number of bytes available in the buffer. On return, the number of bytes used to build the compresssed image. |
[in] | apSource | source data image |
[in] | anSourceLen | source data image length |
int ZLib::zlib_major = 1 |
MityDSP ZLib library major version number (i.e. x in x.y.z).
int ZLib::zlib_minor = 0 |
MityDSP ZLib library minor version number (i.e. y in x.y.z).
int ZLib::zlib_build = 0 |
MityDSP ZLib library build version number (i.e. z in x.y.z).
const char * ZLib::zlib_str = "MityDSP ZLib Data Compression library, v1.0.0" |
MityDSP ZLib library version as a string.
const char * ZLib::zlib_date = __DATE__ |
MityDSP ZLib library build date.
const char * ZLib::zlib_time = __TIME__ |
MityDSP ZLib library build time.
const unsigned int ZLib::GZ_HEADER_SIZE = 10 [static] |