#include <ZipExtraData.h>
Public Member Functions | |
CZipExtraData (WORD uHeaderID) | |
CZipExtraData (const CZipExtraData &extra) | |
WORD | GetHeaderID () const |
int | GetTotalSize () const |
bool | operator!= (const CZipExtraData &extra) |
bool | operator< (const CZipExtraData &extra) |
bool | operator<= (const CZipExtraData &extra) |
CZipExtraData & | operator= (const CZipExtraData &extra) |
bool | operator== (const CZipExtraData &extra) |
bool | operator> (const CZipExtraData &extra) |
bool | operator>= (const CZipExtraData &extra) |
Public Attributes | |
bool | m_bHasSize |
CZipAutoBuffer | m_data |
Protected Member Functions | |
bool | Read (char *buffer, WORD uSize) |
WORD | Write (char *buffer) const |
Friends | |
class | CZipExtraField |
Definition at line 39 of file ZipExtraData.h.
CZipExtraData::CZipExtraData | ( | WORD | uHeaderID | ) | [inline] |
Initializes a new instance of the CZipExtraData class.
uHeaderID | The unique ID of the data. |
Definition at line 74 of file ZipExtraData.h.
WORD CZipExtraData::GetHeaderID | ( | ) | const [inline] |
int CZipExtraData::GetTotalSize | ( | ) | const [inline] |
Returns the total size the extra data will occupy in the archive.
Definition at line 122 of file ZipExtraData.h.
bool CZipExtraData::Read | ( | char * | buffer, | |
WORD | uSize | |||
) | [protected] |
Reads the extra data record from buffer.
buffer | The buffer to read the data from. | |
uSize | The size of the data to read. |
false
, if uSize was smaller than the declared extra data size; true
otherwise. WORD CZipExtraData::Write | ( | char * | buffer | ) | const [protected] |
Writes the extra data record to buffer.
buffer | The buffer to write to. |
If true
, the size of the extra data record is read from the archive and written to it. This is default behavior consistent with the common ZIP format. If false
, the size is not read or written. You should change this value only when you need special handling.
Definition at line 55 of file ZipExtraData.h.
CZipAutoBuffer CZipExtraData::m_data |
The custom data contained by this record.
Definition at line 47 of file ZipExtraData.h.