![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cZipDir.h>
Public Types | |
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 Member Functions | |
cZipFileEntry0 () | |
~cZipFileEntry0 () | |
void | SetZeroData () |
size_t | get_SizeLH () const |
bool | isValidParams () const |
bool | ValidateParams () |
cStringF | get_Name () const |
void | put_FileName (cStringF sFileName) |
void | SetCopy (const cZipFileEntry0 &h) |
HRESULT | ReadHeader0 (cStreamInput &s, bool bLH) |
HRESULT | WriteHeader0U (cStreamOutput &s) const |
HRESULT | WriteHeader0 (cStreamOutput &s, bool bLH) const |
void | AddExUT (const cZipDataExUT *pEx) |
cZipDataExUT * | FindExUT () const |
cTimeInt | get_DosDateAsTime () const |
cTimeInt | get_TimeCreated () const |
cTimeInt | get_TimeModified () const |
void | SetFileTimes (cTimeInt tCreated, cTimeInt tModified) |
ZIP_COMPLEV_TYPE | get_CompLevel () const |
bool | put_CompLevel (ZIP_COMPLEV_TYPE nCompLevel) |
Public Attributes | |
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... | |
Static Public Attributes | |
static const int | k_nFileNameMax = 256 |
static const int | k_nOffsetU = 14 |
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) |
Info for the "Local Header" for a file. ZIP_MAGIC_LOCALENTRY ZFLG_CRYPT header is written for local header only.
|
inline |
|
inline |
void GrayLib::cZipFileEntry0::AddExUT | ( | const cZipDataExUT * | pEx | ) |
cZipDataExUT* GrayLib::cZipFileEntry0::FindExUT | ( | ) | const |
ZIP_COMPLEV_TYPE GrayLib::cZipFileEntry0::get_CompLevel | ( | ) | const |
cTimeInt GrayLib::cZipFileEntry0::get_DosDateAsTime | ( | ) | const |
|
inline |
|
inline |
true size in "Local Header". includes magic number.
cTimeInt GrayLib::cZipFileEntry0::get_TimeCreated | ( | ) | const |
cTimeInt GrayLib::cZipFileEntry0::get_TimeModified | ( | ) | const |
bool GrayLib::cZipFileEntry0::isValidParams | ( | ) | const |
bool GrayLib::cZipFileEntry0::put_CompLevel | ( | ZIP_COMPLEV_TYPE | nCompLevel | ) |
|
inline |
HRESULT GrayLib::cZipFileEntry0::ReadHeader0 | ( | cStreamInput & | s, |
bool | bLH | ||
) |
|
inline |
< MUST match m_sFileName
< MUST match m_Extra
void GrayLib::cZipFileEntry0::SetZeroData | ( | ) |
bool GrayLib::cZipFileEntry0::ValidateParams | ( | ) |
HRESULT GrayLib::cZipFileEntry0::WriteHeader0 | ( | cStreamOutput & | s, |
bool | bLH | ||
) | const |
HRESULT GrayLib::cZipFileEntry0::WriteHeader0U | ( | cStreamOutput & | s | ) | const |
|
static |
|
static |
ZIP_SIZE_t GrayLib::cZipFileEntry0::m_dwCompressedSize |
compressed size bytes. number of bytes actually stored. plus crypt header size.
UINT32 GrayLib::cZipFileEntry0::m_dwCRC |
CRC-32 for the uncompressed file.
UINT32 GrayLib::cZipFileEntry0::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
ZIP_SIZE_t GrayLib::cZipFileEntry0::m_dwUncompressedSize |
uncompressed size bytes.
COMPMETHOD_TYPE GrayLib::cZipFileEntry0::m_eCompressionMethod |
compression method. none=0, Z_DEFLATED=8, BZIP2=12, PPMd=98.
cHeapBlock GrayLib::cZipFileEntry0::m_Extra |
extra field length. may contain UT. NOTE: NOT the same for LH and CH!
cStringF GrayLib::cZipFileEntry0::m_sFileName |
name relative to some unknown root. ending in \ for directory.
WORD GrayLib::cZipFileEntry0::m_wSize_Extra |
size of m_Extra
WORD GrayLib::cZipFileEntry0::m_wSize_FileName |
MUST match m_sFileName.GetLength()
WORD GrayLib::cZipFileEntry0::m_wVersionNeeded |
version needed to extract. 20 = PKUNZIP 2.0
WORD GrayLib::cZipFileEntry0::m_wZFlags |
general purpose bit flags. ZFLG_TYPE, ZFLG_CRYPT