#include <ZipExtraData.h>
|
bool | Read (char *buffer, WORD uSize) |
|
WORD | Write (char *buffer) const |
|
Represents a single data record in an extra field.
- See Also
- Providing Custom Data: Extra Fields
CZipExtraData::CZipExtraData |
( |
WORD |
uHeaderID | ) |
|
|
inline |
Initializes a new instance of the CZipExtraData class.
- Parameters
-
uHeaderID | The unique ID of the data. |
WORD CZipExtraData::GetHeaderID |
( |
| ) |
const |
|
inline |
Returns the data ID.
- Returns
- The data ID.
int CZipExtraData::GetTotalSize |
( |
| ) |
const |
|
inline |
Returns the total size the extra data will occupy in the archive.
- Returns
- The size in bytes.
bool CZipExtraData::Read |
( |
char * |
buffer, |
|
|
WORD |
uSize |
|
) |
| |
|
protected |
Reads the extra data record from buffer.
- Parameters
-
buffer | The buffer to read the data from. |
uSize | The size of the data to read. |
- Returns
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.
- Parameters
-
buffer | The buffer to write to. |
- Returns
- The total size of extra data in bytes.
bool CZipExtraData::m_bHasSize |
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.
CZipAutoBuffer CZipExtraData::m_data |
The custom data contained by this record.
The documentation for this class was generated from the following file: