#include "zip.h"
#include "zip_p.h"
#include "zipentry_p.h"
#include <time.h>
#include <QMap>
#include <QString>
#include <QStringList>
#include <QDir>
#include <QFile>
#include <QDateTime>
#include <QCoreApplication>
#include <QtDebug>
Go to the source code of this file.
◆ CRC32
| #define CRC32 |
( |
|
c, |
|
|
|
b |
|
) |
| crcTable[((int)c^b) & 0xff] ^ (c >> 8) |
This macro updates a one-char-only CRC; it's the Info-Zip macro re-adapted.
Definition at line 108 of file zip.cpp.
◆ ZIP_CD_OFF_CMET
| #define ZIP_CD_OFF_CMET 10 |
◆ ZIP_CD_OFF_COMMLEN
| #define ZIP_CD_OFF_COMMLEN 32 |
◆ ZIP_CD_OFF_CRC
| #define ZIP_CD_OFF_CRC 16 |
◆ ZIP_CD_OFF_CSIZE
| #define ZIP_CD_OFF_CSIZE 20 |
◆ ZIP_CD_OFF_DISKSTART
| #define ZIP_CD_OFF_DISKSTART 34 |
◆ ZIP_CD_OFF_EATTR
| #define ZIP_CD_OFF_EATTR 38 |
◆ ZIP_CD_OFF_GPFLAG
| #define ZIP_CD_OFF_GPFLAG 8 |
◆ ZIP_CD_OFF_IATTR
| #define ZIP_CD_OFF_IATTR 36 |
◆ ZIP_CD_OFF_LHOFF
| #define ZIP_CD_OFF_LHOFF 42 |
◆ ZIP_CD_OFF_MADEBY
| #define ZIP_CD_OFF_MADEBY 4 |
◆ ZIP_CD_OFF_MODD
| #define ZIP_CD_OFF_MODD 14 |
◆ ZIP_CD_OFF_MODT
| #define ZIP_CD_OFF_MODT 12 |
◆ ZIP_CD_OFF_NAMELEN
| #define ZIP_CD_OFF_NAMELEN 28 |
◆ ZIP_CD_OFF_USIZE
| #define ZIP_CD_OFF_USIZE 24 |
◆ ZIP_CD_OFF_VERSION
| #define ZIP_CD_OFF_VERSION 6 |
◆ ZIP_CD_OFF_XLEN
| #define ZIP_CD_OFF_XLEN 30 |
◆ ZIP_CD_SIZE
Central Directory record size (signature included)
Definition at line 53 of file zip.cpp.
◆ ZIP_COMPRESSION_THRESHOLD
| #define ZIP_COMPRESSION_THRESHOLD 60 |
Do not store very small files as the compression headers overhead would be to big.
Definition at line 105 of file zip.cpp.
◆ ZIP_DD_OFF_CRC32
| #define ZIP_DD_OFF_CRC32 4 |
◆ ZIP_DD_OFF_CSIZE
| #define ZIP_DD_OFF_CSIZE 8 |
◆ ZIP_DD_OFF_USIZE
| #define ZIP_DD_OFF_USIZE 12 |
◆ ZIP_DD_SIZE_WS
| #define ZIP_DD_SIZE_WS 16 |
Data descriptor size (signature included)
Definition at line 51 of file zip.cpp.
◆ ZIP_EOCD_OFF_CDDISKNUM
| #define ZIP_EOCD_OFF_CDDISKNUM 6 |
◆ ZIP_EOCD_OFF_CDENTRIES
| #define ZIP_EOCD_OFF_CDENTRIES 10 |
◆ ZIP_EOCD_OFF_CDOFF
| #define ZIP_EOCD_OFF_CDOFF 16 |
◆ ZIP_EOCD_OFF_CDSIZE
| #define ZIP_EOCD_OFF_CDSIZE 12 |
◆ ZIP_EOCD_OFF_COMMLEN
| #define ZIP_EOCD_OFF_COMMLEN 20 |
◆ ZIP_EOCD_OFF_DISKNUM
| #define ZIP_EOCD_OFF_DISKNUM 4 |
◆ ZIP_EOCD_OFF_ENTRIES
| #define ZIP_EOCD_OFF_ENTRIES 8 |
◆ ZIP_EOCD_SIZE
End of Central Directory record size (signature included)
Definition at line 55 of file zip.cpp.
◆ ZIP_LH_OFF_CMET
| #define ZIP_LH_OFF_CMET 8 |
◆ ZIP_LH_OFF_CRC
| #define ZIP_LH_OFF_CRC 14 |
◆ ZIP_LH_OFF_CSIZE
| #define ZIP_LH_OFF_CSIZE 18 |
◆ ZIP_LH_OFF_GPFLAG
| #define ZIP_LH_OFF_GPFLAG 6 |
◆ ZIP_LH_OFF_MODD
| #define ZIP_LH_OFF_MODD 12 |
◆ ZIP_LH_OFF_MODT
| #define ZIP_LH_OFF_MODT 10 |
◆ ZIP_LH_OFF_NAMELEN
| #define ZIP_LH_OFF_NAMELEN 26 |
◆ ZIP_LH_OFF_USIZE
| #define ZIP_LH_OFF_USIZE 22 |
◆ ZIP_LH_OFF_VERS
| #define ZIP_LH_OFF_VERS 4 |
◆ ZIP_LH_OFF_XLEN
| #define ZIP_LH_OFF_XLEN 28 |
◆ ZIP_LOCAL_ENC_HEADER_SIZE
| #define ZIP_LOCAL_ENC_HEADER_SIZE 12 |
Encryption header size.
Definition at line 49 of file zip.cpp.
◆ ZIP_LOCAL_HEADER_SIZE
| #define ZIP_LOCAL_HEADER_SIZE 30 |
Local header size (including signature, excluding variable length fields)
Definition at line 47 of file zip.cpp.
◆ ZIP_VERSION
PKZip version for archives created by this API.
Definition at line 102 of file zip.cpp.