Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
unzip.cpp File Reference
#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>
Include dependency graph for unzip.cpp:

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.

Macro Definition Documentation

◆ CRC32

#define CRC32 ( c,
b )
Value:
crcTable[((int)c^b) & 0xff] ^ (c >> 8)

CRC32 routine.

◆ UNZIP_CD_ENTRY_SIZE_NS

#define UNZIP_CD_ENTRY_SIZE_NS   42

Central Directory file entry size (excluding signature, excluding variable length fields)

◆ UNZIP_CD_OFF_CMETHOD

#define UNZIP_CD_OFF_CMETHOD   6

◆ UNZIP_CD_OFF_COMMLEN

#define UNZIP_CD_OFF_COMMLEN   28

◆ UNZIP_CD_OFF_CRC32

#define UNZIP_CD_OFF_CRC32   12

◆ UNZIP_CD_OFF_CSIZE

#define UNZIP_CD_OFF_CSIZE   16

◆ UNZIP_CD_OFF_GPFLAG

#define UNZIP_CD_OFF_GPFLAG   4

◆ UNZIP_CD_OFF_LHOFFSET

#define UNZIP_CD_OFF_LHOFFSET   38

◆ UNZIP_CD_OFF_MODD

#define UNZIP_CD_OFF_MODD   10

◆ UNZIP_CD_OFF_MODT

#define UNZIP_CD_OFF_MODT   8

◆ UNZIP_CD_OFF_NAMELEN

#define UNZIP_CD_OFF_NAMELEN   24

◆ UNZIP_CD_OFF_USIZE

#define UNZIP_CD_OFF_USIZE   20

◆ UNZIP_CD_OFF_VERSION

#define UNZIP_CD_OFF_VERSION   2

◆ UNZIP_CD_OFF_VERSION_MADE

#define UNZIP_CD_OFF_VERSION_MADE   0

◆ UNZIP_CD_OFF_XLEN

#define UNZIP_CD_OFF_XLEN   26

◆ UNZIP_DD_OFF_CRC32

#define UNZIP_DD_OFF_CRC32   0

◆ UNZIP_DD_OFF_CSIZE

#define UNZIP_DD_OFF_CSIZE   4

◆ UNZIP_DD_OFF_USIZE

#define UNZIP_DD_OFF_USIZE   8

◆ UNZIP_DD_SIZE

#define UNZIP_DD_SIZE   12

Data descriptor size (excluding signature)

◆ UNZIP_EOCD_OFF_CDOFF

#define UNZIP_EOCD_OFF_CDOFF   12

◆ UNZIP_EOCD_OFF_COMMLEN

#define UNZIP_EOCD_OFF_COMMLEN   16

◆ UNZIP_EOCD_OFF_ENTRIES

#define UNZIP_EOCD_OFF_ENTRIES   6

◆ UNZIP_EOCD_SIZE

#define UNZIP_EOCD_SIZE   22

End Of Central Directory size (including signature, excluding variable length fields)

◆ UNZIP_LH_OFF_CMETHOD

#define UNZIP_LH_OFF_CMETHOD   4

◆ UNZIP_LH_OFF_CRC32

#define UNZIP_LH_OFF_CRC32   10

◆ UNZIP_LH_OFF_CSIZE

#define UNZIP_LH_OFF_CSIZE   14

◆ UNZIP_LH_OFF_GPFLAG

#define UNZIP_LH_OFF_GPFLAG   2

◆ UNZIP_LH_OFF_MODD

#define UNZIP_LH_OFF_MODD   8

◆ UNZIP_LH_OFF_MODT

#define UNZIP_LH_OFF_MODT   6

◆ UNZIP_LH_OFF_NAMELEN

#define UNZIP_LH_OFF_NAMELEN   22

◆ UNZIP_LH_OFF_USIZE

#define UNZIP_LH_OFF_USIZE   18

◆ UNZIP_LH_OFF_VERSION

#define UNZIP_LH_OFF_VERSION   0

◆ UNZIP_LH_OFF_XLEN

#define UNZIP_LH_OFF_XLEN   24

◆ UNZIP_LOCAL_ENC_HEADER_SIZE

#define UNZIP_LOCAL_ENC_HEADER_SIZE   12

Local header entry encryption header size.

◆ UNZIP_LOCAL_HEADER_SIZE

#define UNZIP_LOCAL_HEADER_SIZE   26

Local header size (excluding signature, excluding variable length fields)

◆ UNZIP_VERSION

#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