![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cZipDir.h>
Public Member Functions | |
cZipDir () | |
~cZipDir () | |
bool | isValidParams () const |
HRESULT | ReadHeader (cStreamInput &s) |
HRESULT | WriteHeader (cStreamOutput &s) |
HRESULT | SeekZipDir (cStreamInput &s) |
HRESULT | ReadZipDir (cStreamInput &s) |
STREAM_OFFSET_t | get_PosLH0 () const |
STREAM_OFFSET_t | get_PosCH0 () const |
size_t | get_SizeCHD () const |
int | get_FileCount () const |
Public Attributes | |
STREAM_OFFSET_t | m_nPosZipDir |
The absolute position of 'this' block in the .ZIP file. it can float from start. is relative to end of file. More... | |
WORD | m_nNumDisk |
number of the current disk, used for spanning ZIP, unsupported, always 0 More... | |
WORD | m_nNumDisk_CD |
number the the disk with central directory, used for spanning ZIP, unsupported, always 0 More... | |
WORD | m_nNumberOfEntries |
total number of entries/files in the central directory on this disk More... | |
WORD | m_nNumberOfEntries_CD |
total number of entries/files in the central directory More... | |
UINT32 | m_nSizeCentralDir |
size of the entire central directory (all entries, not data). bytes More... | |
ZIP_SIZE_t | m_nSizeLocalDir |
size of the local directory + all compressed file data. bytes More... | |
cString | m_sGlobalComment |
comment Has WORD prefix for length. More... | |
Additional Inherited Members | |
![]() | |
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 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) |
The main directory header end block. "Central Directory" the header block after ZIP_MAGIC_DIREND (one per .zip file) everything in a ZIP file is positioned relative to this block in the file. http://www.pkware.com/documents/casestudies/APPNOTE.TXT
GrayLib::cZipDir::cZipDir | ( | ) |
GrayLib::cZipDir::~cZipDir | ( | ) |
|
inline |
|
inline |
get the absolute position of the first central header. cZipFileEntry1
|
inline |
get the absolute position of the first local header. cZipFileEntry0 most times it is 0, but it can float relative to the CH directory block. ZIP_MAGIC_DIREND
|
inline |
get true size of this in "Central Header". includes magic number.
bool GrayLib::cZipDir::isValidParams | ( | ) | const |
HRESULT GrayLib::cZipDir::ReadHeader | ( | cStreamInput & | s | ) |
HRESULT GrayLib::cZipDir::ReadZipDir | ( | cStreamInput & | s | ) |
HRESULT GrayLib::cZipDir::SeekZipDir | ( | cStreamInput & | s | ) |
HRESULT GrayLib::cZipDir::WriteHeader | ( | cStreamOutput & | s | ) |
WORD GrayLib::cZipDir::m_nNumberOfEntries |
total number of entries/files in the central directory on this disk
WORD GrayLib::cZipDir::m_nNumberOfEntries_CD |
total number of entries/files in the central directory
WORD GrayLib::cZipDir::m_nNumDisk |
number of the current disk, used for spanning ZIP, unsupported, always 0
WORD GrayLib::cZipDir::m_nNumDisk_CD |
number the the disk with central directory, used for spanning ZIP, unsupported, always 0
STREAM_OFFSET_t GrayLib::cZipDir::m_nPosZipDir |
The absolute position of 'this' block in the .ZIP file. it can float from start. is relative to end of file.
UINT32 GrayLib::cZipDir::m_nSizeCentralDir |
size of the entire central directory (all entries, not data). bytes
ZIP_SIZE_t GrayLib::cZipDir::m_nSizeLocalDir |
size of the local directory + all compressed file data. bytes
cString GrayLib::cZipDir::m_sGlobalComment |
comment Has WORD prefix for length.