![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cZipDir.h>
Public Types | |
| enum | SYSTEM_TYPE { SYSTEM_MSDOS , SYSTEM_AMIGA , SYSTEM_OPENVMS , SYSTEM_UNIX , SYSTEM_VM_CMS , SYSTEM_ATARI_ST , SYSTEM_OS2_HPFS , SYSTEM_MACINTOSH , SYSTEM_Z_SYSTEM , SYSTEM_CPM , SYSTEM_WINDOWS_NTFS , SYSTEM_MVS , SYSTEM_VSE , SYSTEM_ACORN_RISC , SYSTEM_VFAT , SYSTEM_ALTERNATE_MVS , SYSTEM_BEOS , SYSTEM_TANDEM , SYSTEM_OS_400 } |
Public Types inherited from GrayLib::cZipFileEntry0 | |
| enum | ZFLG_TYPE { ZFLG_CRYPT = 0x01 , ZFLG_COMPLVL1 = 0x02 , ZFLG_COMPLVL2 = 0x04 , ZFLG_SUMS_FOLLOW = 0x08 , ZFLG_ENHANCED = 0x0010 , ZFLG_PATCH = 0x0020 , ZFLG_STRONG_ENC = 0x0040 , ZFLG_UNUSED = 0x0F80 , ZFLG_RESERVED = 0xF000 } |
Public Attributes | |
| BYTE | m_bVersion |
| version made by. 0=any. 20 = PKWARE 2.0 More... | |
| SYSTEM_TYPE | m_eSystemMadeBy |
| 0 = SYSTEM_MSDOS More... | |
| cString | m_sComment |
| file entry comment. WORD comment length More... | |
| WORD | m_wDisk_num_start |
| disk number start More... | |
| WORD | m_wDataTypeGuess |
| best guess about the data type: Z_BINARY or Z_ASCII. zstream.data_type. More... | |
| UINT32 | m_dwFileAttrFlags |
| external file attributes. _WIN32 ATTRIBUTE flags. FILEATTR_Directory = 0x20 More... | |
| ZIP_SIZE_t | m_nOffsetLocal |
| offset of this LH[X] from LH[0]. (4 bytes = ZIP_OFFSET_t) More... | |
Public Attributes inherited from GrayLib::cZipFileEntry0 | |
| WORD | m_wVersionNeeded |
| version needed to extract. 20 = PKUNZIP 2.0 More... | |
| WORD | m_wZFlags |
| general purpose bit flags. ZFLG_TYPE, ZFLG_CRYPT More... | |
| COMPMETHOD_TYPE | m_eCompressionMethod |
| compression method. none=0, Z_DEFLATED=8, BZIP2=12, PPMd=98. More... | |
| UINT32 | m_dwDosDate |
| last modified file date in DOS format. bit packed year,month,day,hour,min,second (accurate to 2 second). unknown time zone. assumed local DST More... | |
| UINT32 | m_dwCRC |
| CRC-32 for the uncompressed file. More... | |
| ZIP_SIZE_t | m_dwCompressedSize |
| compressed size bytes. number of bytes actually stored. plus crypt header size. More... | |
| ZIP_SIZE_t | m_dwUncompressedSize |
| uncompressed size bytes. More... | |
| WORD | m_wSize_FileName |
| MUST match m_sFileName.GetLength() More... | |
| WORD | m_wSize_Extra |
| size of m_Extra More... | |
| cStringF | m_sFileName |
| name relative to some unknown root. ending in \ for directory. More... | |
| cHeapBlock | m_Extra |
| extra field length. may contain UT. NOTE: NOT the same for LH and CH! More... | |
Additional Inherited Members | |
Static Public Attributes inherited from GrayLib::cZipFileEntry0 | |
| static const int | k_nFileNameMax = 256 |
| static const int | k_nOffsetU = 14 |
Protected Types inherited from GrayLib::cZipData | |
| enum | COMPMETHOD_TYPE { COMPMETHOD_Store = 0 , COMPMETHOD_OLD_SHRINK , COMPMETHOD_OLD_REDUCE1 , COMPMETHOD_OLD_REDUCE2 , COMPMETHOD_OLD_REDUCE3 , COMPMETHOD_OLD_REDUCE4 , COMPMETHOD_OLD_IMPLODE , COMPMETHOD_OLD_TOKENIZE , COMPMETHOD_Deflate = 8 , COMPMETHOD_Deflate64 = 9 , COMPMETHOD_BZIP2 = 12 , COMPMETHOD_JPEG = 96 , COMPMETHOD_WavPack = 97 , COMPMETHOD_PPMd = 98 } |
Static Protected Member Functions inherited from GrayLib::cZipData | |
| static HRESULT GRAYCALL | ReadU16 (cStreamInput &stmIn, WORD *pX) |
| static HRESULT GRAYCALL | ReadU32 (cStreamInput &stmIn, UINT32 *pX) |
| static HRESULT | WriteU16 (cStreamOutput &s, WORD x) |
| static HRESULT | WriteU32 (cStreamOutput &s, UINT32 x) |
directory information about a file in the zip file. Entry for the "CentralHeader" zip directory. Preceded by ZIP_MAGIC_DIRENTRY contains some duplicate info from the "Local Header" but m_Extra data may differ. Directories are empty stubs that have names ending in .
Pkware's system type values. Note that Info-zip disagree on some of them, most notably NTFS. Similar to FILESYS_TYPE
|
inline |
|
inline |
|
inline |
|
inline |
includes size for magic number.
| bool GrayLib::cZipFileEntry1::isAttrDir | ( | ) | const |
| bool GrayLib::cZipFileEntry1::isMatch | ( | const cZipFileEntry0 & | entry | ) | const |
| bool GrayLib::cZipFileEntry1::isValidParams | ( | ) | const |
|
inline |
| HRESULT GrayLib::cZipFileEntry1::ReadHeader1 | ( | cStreamInput & | s | ) |
| void GrayLib::cZipFileEntry1::SetCopy | ( | const cZipFileEntry1 & | h | ) |
| void GrayLib::cZipFileEntry1::SetZeroData | ( | ) |
| HRESULT GrayLib::cZipFileEntry1::WriteHeader1 | ( | cStreamOutput & | s | ) | const |
| BYTE GrayLib::cZipFileEntry1::m_bVersion |
version made by. 0=any. 20 = PKWARE 2.0
| UINT32 GrayLib::cZipFileEntry1::m_dwFileAttrFlags |
external file attributes. _WIN32 ATTRIBUTE flags. FILEATTR_Directory = 0x20
| SYSTEM_TYPE GrayLib::cZipFileEntry1::m_eSystemMadeBy |
0 = SYSTEM_MSDOS
| ZIP_SIZE_t GrayLib::cZipFileEntry1::m_nOffsetLocal |
offset of this LH[X] from LH[0]. (4 bytes = ZIP_OFFSET_t)
| cString GrayLib::cZipFileEntry1::m_sComment |
file entry comment. WORD comment length
| WORD GrayLib::cZipFileEntry1::m_wDataTypeGuess |
best guess about the data type: Z_BINARY or Z_ASCII. zstream.data_type.
| WORD GrayLib::cZipFileEntry1::m_wDisk_num_start |
disk number start