|
DynXX-C
|
Go to the source code of this file.
Typedefs | |
| typedef address | DynXXUnZipHandle |
Enumerations | |
| enum | DynXXZipCompressMode { DynXXZipCompressModeDefault = -1 , DynXXZipCompressModePreferSpeed = 1 , DynXXZipCompressModePreferSize = 9 } |
| enum | DynXXZFormat { DynXXZFormatZLib = 0 , DynXXZFormatGZip = 1 , DynXXZFormatRaw = 2 } |
Functions | |
| DynXXZipHandle | dynxx_z_zip_init (DynXXZipCompressMode mode, size_t bufferSize, DynXXZFormat format) |
| initialize a ZIP process | |
| size_t | dynxx_z_zip_input (DynXXZipHandle zip, const byte *inBytes, size_t inLen, bool inFinish) |
| input data to ZIP process | |
| const byte * | dynxx_z_zip_process_do (DynXXZipHandle zip, DYNXX_OUT size_t *outLen) |
| process the ZIP input data | |
| bool | dynxx_z_zip_process_finished (DynXXZipHandle zip) |
| check whether all the ZIP data inputed before are processed | |
| void | dynxx_z_zip_release (DynXXZipHandle zip) |
| release a ZIP process | |
| DynXXUnZipHandle | dynxx_z_unzip_init (size_t bufferSize, DynXXZFormat format) |
| initialize a UNZIP process | |
| size_t | dynxx_z_unzip_input (DynXXUnZipHandle unzip, const byte *inBytes, size_t inLen, bool inFinish) |
| input data to UNZIP process | |
| const byte * | dynxx_z_unzip_process_do (DynXXUnZipHandle unzip, DYNXX_OUT size_t *outLen) |
| process the UNZIP input data | |
| bool | dynxx_z_unzip_process_finished (DynXXUnZipHandle unzip) |
| check whether all the ZIP data inputed before are processed | |
| void | dynxx_z_unzip_release (DynXXUnZipHandle unzip) |
| release a unzip process | |
| bool | dynxx_z_cfile_zip (DynXXZipCompressMode mode, size_t bufferSize, DynXXZFormat format, FILE *cFILEIn, FILE *cFILEOut) |
| ZIP for C FILE. | |
| bool | dynxx_z_cfile_unzip (size_t bufferSize, DynXXZFormat format, FILE *cFILEIn, FILE *cFILEOut) |
| UNZIP for C FILE. | |
| const byte * | dynxx_z_bytes_zip (DynXXZipCompressMode mode, size_t bufferSize, DynXXZFormat format, const byte *inBytes, size_t inLen, DYNXX_OUT size_t *outLen) |
| ZIP for bytes. | |
| const byte * | dynxx_z_bytes_unzip (size_t bufferSize, DynXXZFormat format, const byte *inBytes, size_t inLen, DYNXX_OUT size_t *outLen) |
| UNZIP for bytes. | |
Variables | |
| DYNXX_EXTERN_C_BEGIN typedef address | DynXXZipHandle |
| typedef address DynXXUnZipHandle |
| enum DynXXZFormat |
| enum DynXXZipCompressMode |
| const byte * dynxx_z_bytes_unzip | ( | size_t | bufferSize, |
| DynXXZFormat | format, | ||
| const byte * | inBytes, | ||
| size_t | inLen, | ||
| DYNXX_OUT size_t * | outLen | ||
| ) |
UNZIP for bytes.
| bufferSize | buffer size,must be positive |
| format | header type, see DynXXZFormat |
| inBytes | Input bytes data |
| inLen | Input bytes length |
| outLen | A pointer to read output bytes length |
| const byte * dynxx_z_bytes_zip | ( | DynXXZipCompressMode | mode, |
| size_t | bufferSize, | ||
| DynXXZFormat | format, | ||
| const byte * | inBytes, | ||
| size_t | inLen, | ||
| DYNXX_OUT size_t * | outLen | ||
| ) |
ZIP for bytes.
| mode | ZIP mode, see DynXXZipCompressMode |
| bufferSize | buffer size,must be positive |
| format | header type, see DynXXZFormat |
| inBytes | Input bytes data |
| inLen | Input bytes length |
| outLen | A pointer to read output bytes length |
| bool dynxx_z_cfile_unzip | ( | size_t | bufferSize, |
| DynXXZFormat | format, | ||
| FILE * | cFILEIn, | ||
| FILE * | cFILEOut | ||
| ) |
UNZIP for C FILE.
| bufferSize | buffer size,must be positive |
| format | header type, see DynXXZFormat |
| cFILEIn | Input C FILE |
| cFILEOut | Output C FILE |
| bool dynxx_z_cfile_zip | ( | DynXXZipCompressMode | mode, |
| size_t | bufferSize, | ||
| DynXXZFormat | format, | ||
| FILE * | cFILEIn, | ||
| FILE * | cFILEOut | ||
| ) |
ZIP for C FILE.
| mode | ZIP mode, see DynXXZipCompressMode |
| bufferSize | buffer size,must be positive |
| format | header type, see DynXXZFormat |
| cFILEIn | Input C FILE |
| cFILEOut | Output C FILE |
| DynXXUnZipHandle dynxx_z_unzip_init | ( | size_t | bufferSize, |
| DynXXZFormat | format | ||
| ) |
initialize a UNZIP process
| bufferSize | buffer size,must be positive |
| format | header type, see DynXXZFormat |
| size_t dynxx_z_unzip_input | ( | DynXXUnZipHandle | unzip, |
| const byte * | inBytes, | ||
| size_t | inLen, | ||
| bool | inFinish | ||
| ) |
input data to UNZIP process
| unzip | The UNZIP handle |
| inBytes | input data bytes |
| inLen | input data length |
| inFinish | Whether input is finished or not |
0 if error occurred | const byte * dynxx_z_unzip_process_do | ( | DynXXUnZipHandle | unzip, |
| DYNXX_OUT size_t * | outLen | ||
| ) |
process the UNZIP input data
| unzip | The UNZIP handle |
| outLen | a pointer to read the output data length |
nullptr if error occurred | bool dynxx_z_unzip_process_finished | ( | DynXXUnZipHandle | unzip | ) |
check whether all the ZIP data inputed before are processed
| unzip | The UNZIP handle |
| void dynxx_z_unzip_release | ( | DynXXUnZipHandle | unzip | ) |
release a unzip process
| unzip | The unzip handle |
| DynXXZipHandle dynxx_z_zip_init | ( | DynXXZipCompressMode | mode, |
| size_t | bufferSize, | ||
| DynXXZFormat | format | ||
| ) |
initialize a ZIP process
| mode | ZIP mode, see DynXXZipCompressMode |
| bufferSize | buffer size,must be positive |
| format | header type, see DynXXZFormat |
| size_t dynxx_z_zip_input | ( | DynXXZipHandle | zip, |
| const byte * | inBytes, | ||
| size_t | inLen, | ||
| bool | inFinish | ||
| ) |
input data to ZIP process
| zip | The ZIP handle |
| inBytes | input data bytes |
| inLen | input data length |
| inFinish | Whether input is finished or not |
0 if error occurred | const byte * dynxx_z_zip_process_do | ( | DynXXZipHandle | zip, |
| DYNXX_OUT size_t * | outLen | ||
| ) |
process the ZIP input data
| zip | The ZIP handle |
| outLen | a pointer to read the output data length |
nullptr if error occurred | bool dynxx_z_zip_process_finished | ( | DynXXZipHandle | zip | ) |
check whether all the ZIP data inputed before are processed
| zip | The ZIP handle |
| void dynxx_z_zip_release | ( | DynXXZipHandle | zip | ) |
release a ZIP process
| zip | The ZIP handle |
| DYNXX_EXTERN_C_BEGIN typedef address DynXXZipHandle |