Game Development Reference
In-Depth Information
// -
———————————————————————————————————————————————————————————————————————
// Basic types.
// -
———————————————————————————————————————————————————————————————————————
typedef unsigned long dword;
typedef unsigned short word;
typedef unsigned char byte;
// -
———————————————————————————————————————————————————————————————————————
// ZIP file structures. Note these have to be packed.
// -
———————————————————————————————————————————————————————————————————————
#pragma pack(1)
// -
———————————————————————————————————————————————————————————————————————
struct ZipFile::TZipLocalHeader
{
enum
{
SIGNATURE = 0x04034b50
};
dword sig;
word
version;
word
flag;
word
compression;
// COMP_xxxx
word modTime;
word modDate;
dword crc32;
dword cSize;
dword ucSize;
word
fnameLen;
// Filename string follows header.
word
xtraLen;
// Extra field follows filename.
};
struct ZipFile::TZipDirHeader
{
enum { SIGNATURE = 0x06054b50 };
dword sig;
word nDisk;
word nStartDisk;
word nDirEntries;
word totalDirEntries;
dword dirSize;
dword dirOffset;
word
cmntLen;
};
Search WWH ::




Custom Search