|
|
The GX is the base system for the majority of the ARH Inc. products. It is a collection of loadable modules and library functions and gives an easy to program interface to the hardware devices.
This file contains the descriptions of classes and functions of the compression handling module.
Go to the source code of this file.
Classes | |
| class | gxGZip |
| Class for the GZip functions. More... | |
| struct | gxZipFileInfo |
| Information structure for a file in the ZIP. More... | |
| struct | gxZipFileDetInfo |
| Detailed information structure for a file in the ZIP. More... | |
| class | gxZip |
| Class for the Zip functions. More... | |
Enumerations | |
| enum | GX_ZLEVELS { GX_Z_NO_COMPRESSION = 0, GX_Z_BEST_SPEED = 1, GX_Z_BEST_COMPRESSION = 9, GX_Z_DEFAULT_COMPRESSION = -1 } |
| Compression levels (0-9). More... | |
| enum | GX_ZSTRATEGIES { GX_Z_FILTERED = 1, GX_Z_HUFFMAN_ONLY = 2, GX_Z_RLE = 3, GX_Z_FIXED = 4, GX_Z_DEFAULT_STRATEGY = 0 } |
| Compression strategies. More... | |
| enum | GX_ZMETHODS { GX_Z_DEFLATED = 8 } |
| Compression methods. More... | |
| enum | GX_CREATEZIPMODES { GX_ZIP_CREATE = 0, GX_ZIP_CREATEAFTER, GX_ZIP_ADDINZIP } |
| Create modes for gx_createzip() function. More... | |
Functions | |
| int | gx_gzcompress (gxHANDLE handle, void *target, int *tgtlen, const void *source, int srclen, int level) |
| Compresses a memory area. | |
| int | gx_gzcompressd (void *target, int *tgtlen, const void *source, int srclen, int level) |
| Compresses a memory area. | |
| int | gx_gzcompress (void *target, int *tgtlen, const void *source, int srclen, int level) |
| Compresses a memory area. | |
| int | gx_gzuncompress (gxHANDLE handle, void *target, int *tgtlen, const void *source, int srclen) |
| Decompresses a compressed data from memory. | |
| int | gx_gzuncompressd (void *target, int *tgtlen, const void *source, int srclen) |
| Decompresses a compressed data from memory. | |
| int | gx_gzuncompress (void *target, int *tgtlen, const void *source, int srclen) |
| Decompresses a compressed data from memory. | |
| int | gx_creategz (gxHANDLE handle, const wchar_t *filename, int level, int strategy) |
| Creates a .gz file (Unicode version). | |
| int | gx_creategza (gxHANDLE handle, const char *filename, int level, int strategy) |
| Creates a .gz file (ASCII version). | |
| int | gx_creategz (gxHANDLE handle, const char *filename, int level, int strategy) |
| Creates a .gz file (ASCII version). | |
| int | gx_opengz (gxHANDLE handle, const wchar_t *filename) |
| Opens the .gz file (Unicode version). | |
| int | gx_opengza (gxHANDLE handle, const char *filename) |
| Opens the .gz file (ASCII version). | |
| int | gx_opengz (gxHANDLE handle, const char *filename) |
| Opens the .gz file (ASCII version). | |
| int | gx_closegz (gxHANDLE handle) |
| Closes an opened or created .gz file. | |
| int | gx_readgz (gxHANDLE handle, void *buffer, int *buflen) |
| Reads data from an opened .gz file. | |
| int | gx_writegz (gxHANDLE handle, const void *buffer, int buflen) |
| Writes data to a created .gz file. | |
| int | gx_createzip (gxHANDLE handle, const wchar_t *filename, int mode) |
| Creates a ZIP file (Unicode version). | |
| int | gx_createzipa (gxHANDLE handle, const char *filename, int mode) |
| Creates a ZIP file (ASCII version). | |
| int | gx_createzip (gxHANDLE handle, const char *filename, int mode) |
| Creates a ZIP file (ASCII version). | |
| int | gx_openzip (gxHANDLE handle, const wchar_t *filename) |
| Opens a ZIP file (Unicode version). | |
| int | gx_openzipa (gxHANDLE handle, const char *filename) |
| Opens a ZIP file (ASCII version). | |
| int | gx_openzip (gxHANDLE handle, const char *filename) |
| Opens a ZIP file (ASCII version). | |
| int | gx_createzipinmemory (gxHANDLE handle, int mode) |
| Creates a ZIP file in memory. | |
| int | gx_getzipinmemory (gxHANDLE handle, void **pbuffer, int *pbuflen) |
| Get the created ZIP file in memory. | |
| int | gx_openzipinmemory (gxHANDLE handle, void *buffer, int buflen) |
| Opens a ZIP file in memory. | |
| int | gx_closezip (gxHANDLE handle, const wchar_t *comment) |
| It closes an opened/created ZIP file (Unicode version). | |
| int | gx_closezipa (gxHANDLE handle, const char *comment) |
| It closes an opened/created ZIP file (ASCII version). | |
| int | gx_closezip (gxHANDLE handle, const char *comment=(const char *) 0) |
| It closes an opened/created ZIP file (ASCII version). | |
| int | gx_getzipinfo (gxHANDLE handle, struct GX_PARM_GETZIPINFO *info) |
| Gives informations about the opened ZIP file. | |
| int | gx_getzipcomment (gxHANDLE handle, wchar_t *target, int *tlen) |
| Reads the comment from the archive (Unicode version). | |
| int | gx_getzipcommenta (gxHANDLE handle, char *target, int *tlen) |
| Reads the comment from the archive (ASCII version). | |
| int | gx_getzipcomment (gxHANDLE handle, char *target, int *tlen) |
| Reads the comment from the archive (ASCII version). | |
| int | gx_createfileinzip (gxHANDLE handle, struct GX_PARM_CREATEFILEINZIPW *cfz) |
| Creates a file in the archive (Unicode version). | |
| int | gx_createfileinzipa (gxHANDLE handle, struct GX_PARM_CREATEFILEINZIP *cfz) |
| Creates a file in the archive (ASCII version). | |
| int | gx_createfileinzip (gxHANDLE handle, struct GX_PARM_CREATEFILEINZIP *cfz) |
| Creates a file in the archive (ASCII version). | |
| int | gx_writetofileinzip (gxHANDLE handle, const void *buffer, int buflen) |
| Writes data to the current file in the archive. | |
| int | gx_closefileinzip (gxHANDLE handle) |
| Closes the current file in the archive. | |
| int | gx_firstfileinzip (gxHANDLE handle, GX_ZIPFILEDETINFOW *finfo) |
| Sets marker to the first file in the archive (Unicode version). | |
| int | gx_firstfileinzipa (gxHANDLE handle, GX_ZIPFILEDETINFO *finfo) |
| Sets marker to the first file in the archive. | |
| int | gx_firstfileinzip (gxHANDLE handle, GX_ZIPFILEDETINFO *finfo) |
| Sets marker to the first file in the archive. | |
| int | gx_nextfileinzip (gxHANDLE handle, GX_ZIPFILEDETINFOW *finfo) |
| Sets marker to the next file in the archive (Unicode version). | |
| int | gx_nextfileinzipa (gxHANDLE handle, GX_ZIPFILEDETINFO *finfo) |
| Sets marker to the next file in the archive. | |
| int | gx_nextfileinzip (gxHANDLE handle, GX_ZIPFILEDETINFO *finfo) |
| Sets marker to the next file in the archive. | |
| int | gx_locatefileinzip (gxHANDLE handle, GX_ZIPFILEDETINFOW *finfo, const wchar_t *filename, int casesensitivity) |
| Sets marker to the specified file in the archive (Unicode version). | |
| int | gx_locatefileinzipa (gxHANDLE handle, GX_ZIPFILEDETINFO *finfo, const char *filename, int casesensitivity) |
| Sets marker to the specified file in the archive (ASCII version). | |
| int | gx_locatefileinzip (gxHANDLE handle, GX_ZIPFILEDETINFO *finfo, const char *filename, int casesensitivity) |
| Sets marker to the specified file in the archive (ASCII version). | |
| int | gx_fileinfoinzip (gxHANDLE handle, GX_ZIPFILEDETINFOW *finfo) |
| Gives information about a marked file in the archive (Unicode version). | |
| int | gx_fileinfoinzipa (gxHANDLE handle, GX_ZIPFILEDETINFO *finfo) |
| Gives information about a marked file in the archive (ASCII version). | |
| int | gx_fileinfoinzip (gxHANDLE handle, GX_ZIPFILEDETINFO *finfo) |
| Gives information about a marked file in the archive (ASCII version). | |
| int | gx_openfileinzip (gxHANDLE handle, int *method, int *level, const wchar_t *password) |
| Opens a marked file in the archive (Unicode version). | |
| int | gx_openfileinzipa (gxHANDLE handle, int *method, int *level, const char *password) |
| Opens a marked file in the archive. | |
| int | gx_openfileinzip (gxHANDLE handle, int *method, int *level, const char *password=(const char *) 0) |
| Opens a marked file in the archive. | |
| int | gx_readfromfileinzip (gxHANDLE handle, void *target, int *tlen) |
| It reads a content from a marked file in the archive. | |
| int | gx_calculatezipcrc (gxHANDLE handle, unsigned int *crc, const void *buffer, int buflen) |
| Calculates CRC-32 value from the specified buffer. | |
| int | gx_calculatezipcrcd (unsigned int *crc, const void *buffer, int buflen) |
| Calculates CRC-32 value from the specified buffer. | |
| int | gx_calculatezipcrc (unsigned int *crc, const void *buffer, int buflen) |
| Calculates CRC-32 value from the specified buffer. | |
| int | gx_getinitialzipcrc (gxHANDLE handle, unsigned int *crc) |
| Returns the initial CRC. | |
| int | gx_getinitialzipcrcd (unsigned int *crc) |
| Returns the initial CRC. | |
| int | gx_getinitialzipcrc (unsigned int *crc) |
| Returns the initial CRC. | |
| int | gx_readlexfieldzip (gxHANDLE handle, void *buffer, int *buflen) |
| Reads the local extra field of the marked file in the archive. | |
| enum GX_ZLEVELS |
| enum GX_ZSTRATEGIES |
Compression strategies.
| enum GX_ZMETHODS |
| enum GX_CREATEZIPMODES |
Create modes for gx_createzip() function.