#include "unzip.h"#include "unzip_p.h"#include "zipentry_p.h"#include <QtCore/QCoreApplication>#include <QtCore/QDir>#include <QtCore/QFile>#include <QtCore/QString>#include <QtCore/QStringList>#include <QtCore/QtDebug>Macros | |
| #define | UNZIP_LOCAL_HEADER_SIZE 26 |
| Local header size (excluding signature, excluding variable length fields) | |
| #define | UNZIP_CD_ENTRY_SIZE_NS 42 |
| Central Directory file entry size (excluding signature, excluding variable length fields) | |
| #define | UNZIP_DD_SIZE 12 |
| Data descriptor size (excluding signature) | |
| #define | UNZIP_EOCD_SIZE 22 |
| End Of Central Directory size (including signature, excluding variable length fields) | |
| #define | UNZIP_LOCAL_ENC_HEADER_SIZE 12 |
| Local header entry encryption header size. | |
| #define | UNZIP_CD_OFF_VERSION_MADE 0 |
| #define | UNZIP_CD_OFF_VERSION 2 |
| #define | UNZIP_CD_OFF_GPFLAG 4 |
| #define | UNZIP_CD_OFF_CMETHOD 6 |
| #define | UNZIP_CD_OFF_MODT 8 |
| #define | UNZIP_CD_OFF_MODD 10 |
| #define | UNZIP_CD_OFF_CRC32 12 |
| #define | UNZIP_CD_OFF_CSIZE 16 |
| #define | UNZIP_CD_OFF_USIZE 20 |
| #define | UNZIP_CD_OFF_NAMELEN 24 |
| #define | UNZIP_CD_OFF_XLEN 26 |
| #define | UNZIP_CD_OFF_COMMLEN 28 |
| #define | UNZIP_CD_OFF_LHOFFSET 38 |
| #define | UNZIP_LH_OFF_VERSION 0 |
| #define | UNZIP_LH_OFF_GPFLAG 2 |
| #define | UNZIP_LH_OFF_CMETHOD 4 |
| #define | UNZIP_LH_OFF_MODT 6 |
| #define | UNZIP_LH_OFF_MODD 8 |
| #define | UNZIP_LH_OFF_CRC32 10 |
| #define | UNZIP_LH_OFF_CSIZE 14 |
| #define | UNZIP_LH_OFF_USIZE 18 |
| #define | UNZIP_LH_OFF_NAMELEN 22 |
| #define | UNZIP_LH_OFF_XLEN 24 |
| #define | UNZIP_DD_OFF_CRC32 0 |
| #define | UNZIP_DD_OFF_CSIZE 4 |
| #define | UNZIP_DD_OFF_USIZE 8 |
| #define | UNZIP_EOCD_OFF_ENTRIES 6 |
| #define | UNZIP_EOCD_OFF_CDOFF 12 |
| #define | UNZIP_EOCD_OFF_COMMLEN 16 |
| #define | UNZIP_VERSION 0x14 |
| #define | CRC32(c, b) |
| CRC32 routine. | |
| #define CRC32 | ( | c, | |
| b ) |
CRC32 routine.
| #define UNZIP_CD_ENTRY_SIZE_NS 42 |
Central Directory file entry size (excluding signature, excluding variable length fields)
| #define UNZIP_CD_OFF_CMETHOD 6 |
| #define UNZIP_CD_OFF_COMMLEN 28 |
| #define UNZIP_CD_OFF_CRC32 12 |
| #define UNZIP_CD_OFF_CSIZE 16 |
| #define UNZIP_CD_OFF_GPFLAG 4 |
| #define UNZIP_CD_OFF_LHOFFSET 38 |
| #define UNZIP_CD_OFF_MODD 10 |
| #define UNZIP_CD_OFF_MODT 8 |
| #define UNZIP_CD_OFF_NAMELEN 24 |
| #define UNZIP_CD_OFF_USIZE 20 |
| #define UNZIP_CD_OFF_VERSION 2 |
| #define UNZIP_CD_OFF_VERSION_MADE 0 |
| #define UNZIP_CD_OFF_XLEN 26 |
| #define UNZIP_DD_OFF_CRC32 0 |
| #define UNZIP_DD_OFF_CSIZE 4 |
| #define UNZIP_DD_OFF_USIZE 8 |
| #define UNZIP_DD_SIZE 12 |
Data descriptor size (excluding signature)
| #define UNZIP_EOCD_OFF_CDOFF 12 |
| #define UNZIP_EOCD_OFF_COMMLEN 16 |
| #define UNZIP_EOCD_OFF_ENTRIES 6 |
| #define UNZIP_EOCD_SIZE 22 |
End Of Central Directory size (including signature, excluding variable length fields)
| #define UNZIP_LH_OFF_CMETHOD 4 |
| #define UNZIP_LH_OFF_CRC32 10 |
| #define UNZIP_LH_OFF_CSIZE 14 |
| #define UNZIP_LH_OFF_GPFLAG 2 |
| #define UNZIP_LH_OFF_MODD 8 |
| #define UNZIP_LH_OFF_MODT 6 |
| #define UNZIP_LH_OFF_NAMELEN 22 |
| #define UNZIP_LH_OFF_USIZE 18 |
| #define UNZIP_LH_OFF_VERSION 0 |
| #define UNZIP_LH_OFF_XLEN 24 |
| #define UNZIP_LOCAL_ENC_HEADER_SIZE 12 |
Local header entry encryption header size.
| #define UNZIP_LOCAL_HEADER_SIZE 26 |
Local header size (excluding signature, excluding variable length fields)
| #define UNZIP_VERSION 0x14 |
Max version handled by this API. 0x14 = 2.0 --> full compatibility only up to this version; later versions use unsupported features