![]() |
XRootD
|
#include <XrdZipEOCD.hh>
Public Member Functions | |
EOCD (const char *buffer, uint32_t maxSize=0) | |
Constructor from buffer. More... | |
EOCD (uint64_t cdoff, uint32_t cdcnt, uint32_t cdsize) | |
Constructor from last LFH + CDFH. More... | |
void | Serialize (buffer_t &buffer) |
Serialize the object into a buffer. More... | |
std::string | ToString () |
Convert the EOCD into a string for logging purposes. More... | |
Static Public Member Functions | |
static const char * | Find (const char *buffer, uint64_t size) |
Public Attributes | |
uint32_t | cdOffset |
uint32_t | cdSize |
std::string | comment |
uint16_t | commentLength |
uint16_t | eocdSize |
uint16_t | nbCdRec |
uint16_t | nbCdRecD |
uint16_t | nbDisk |
uint16_t | nbDiskCd |
bool | useZip64 |
Static Public Attributes | |
static const uint16_t | eocdBaseSize = 22 |
static const uint32_t | eocdSign = 0x06054b50 |
static const uint16_t | maxCommentLength = 65535 |
Definition at line 39 of file XrdZipEOCD.hh.
|
inline |
Constructor from buffer.
Definition at line 54 of file XrdZipEOCD.hh.
References cdOffset, cdSize, comment, commentLength, eocdBaseSize, eocdSize, nbCdRec, nbCdRecD, nbDisk, nbDiskCd, and useZip64.
|
inline |
Constructor from last LFH + CDFH.
Definition at line 74 of file XrdZipEOCD.hh.
References cdOffset, cdSize, commentLength, eocdBaseSize, eocdSize, nbCdRec, nbCdRecD, and useZip64.
|
inlinestatic |
Definition at line 41 of file XrdZipEOCD.hh.
References eocdBaseSize, and eocdSign.
Referenced by XrdCl::ZipArchive::OpenArchive().
|
inline |
Serialize the object into a buffer.
Definition at line 107 of file XrdZipEOCD.hh.
References cdOffset, cdSize, comment, commentLength, XrdZip::copy_bytes(), eocdSign, nbCdRec, nbCdRecD, nbDisk, and nbDiskCd.
|
inline |
uint32_t XrdZip::EOCD::cdOffset |
Definition at line 143 of file XrdZipEOCD.hh.
Referenced by EOCD(), XrdZip::ZIP64_EOCDL::ZIP64_EOCDL(), Serialize(), and ToString().
uint32_t XrdZip::EOCD::cdSize |
Definition at line 142 of file XrdZipEOCD.hh.
Referenced by EOCD(), XrdZip::ZIP64_EOCDL::ZIP64_EOCDL(), Serialize(), and ToString().
std::string XrdZip::EOCD::comment |
Definition at line 145 of file XrdZipEOCD.hh.
Referenced by EOCD(), Serialize(), and ToString().
uint16_t XrdZip::EOCD::commentLength |
Definition at line 144 of file XrdZipEOCD.hh.
Referenced by EOCD(), Serialize(), and ToString().
|
static |
Definition at line 153 of file XrdZipEOCD.hh.
Referenced by EOCD(), Find(), and XrdCl::ZipArchive::OpenArchive().
|
static |
Definition at line 152 of file XrdZipEOCD.hh.
Referenced by Find(), and Serialize().
uint16_t XrdZip::EOCD::eocdSize |
Definition at line 146 of file XrdZipEOCD.hh.
Referenced by EOCD().
|
static |
Definition at line 154 of file XrdZipEOCD.hh.
Referenced by XrdCl::ZipArchive::OpenArchive().
uint16_t XrdZip::EOCD::nbCdRec |
Definition at line 141 of file XrdZipEOCD.hh.
Referenced by EOCD(), Serialize(), and ToString().
uint16_t XrdZip::EOCD::nbCdRecD |
Definition at line 140 of file XrdZipEOCD.hh.
Referenced by EOCD(), Serialize(), and ToString().
uint16_t XrdZip::EOCD::nbDisk |
Definition at line 138 of file XrdZipEOCD.hh.
Referenced by EOCD(), Serialize(), and ToString().
uint16_t XrdZip::EOCD::nbDiskCd |
Definition at line 139 of file XrdZipEOCD.hh.
Referenced by EOCD(), Serialize(), and ToString().
bool XrdZip::EOCD::useZip64 |
Definition at line 147 of file XrdZipEOCD.hh.
Referenced by EOCD().