![]() |
XRootD
|
A data structure representing ZIP Local File Header. More...
#include <XrdZipLFH.hh>
Public Member Functions | |
LFH (const char *buffer, const uint64_t bufferSize=0) | |
Constructor from buffer. More... | |
LFH (const std::string &filename, uint32_t crc, off_t fileSize, time_t time) | |
Constructor. More... | |
void | ParseExtra (const char *buffer, uint16_t length) |
void | Serialize (buffer_t &buffer) |
Serialize the object into a buffer. More... | |
Static Public Member Functions | |
static uint32_t | initSize (const off_t &fileSize) |
Convenience function for initializing compressed/uncompressed size. More... | |
Public Attributes | |
uint32_t | compressedSize |
uint16_t | compressionMethod |
std::unique_ptr< Extra > | extra |
uint16_t | extraLength |
std::string | filename |
uint16_t | filenameLength |
uint16_t | generalBitFlag |
uint16_t | lfhSize |
uint16_t | minZipVersion |
dos_timestmp | timestmp |
uint32_t | uncompressedSize |
uint32_t | ZCRC32 |
Static Public Attributes | |
static const uint16_t | lfhBaseSize = 30 |
static const uint32_t | lfhSign = 0x04034b50 |
Local File Header signature. More... | |
A data structure representing ZIP Local File Header.
Definition at line 41 of file XrdZipLFH.hh.
|
inline |
Constructor.
Definition at line 55 of file XrdZipLFH.hh.
References extra, extraLength, filenameLength, lfhBaseSize, lfhSize, and minZipVersion.
|
inline |
Constructor from buffer.
Definition at line 71 of file XrdZipLFH.hh.
References compressedSize, compressionMethod, XrdZip::dos_timestmp::date, extraLength, filename, filenameLength, XrdZip::from_buffer(), generalBitFlag, lfhBaseSize, lfhSign, lfhSize, minZipVersion, ParseExtra(), XrdZip::dos_timestmp::time, timestmp, uncompressedSize, and ZCRC32.
|
inlinestatic |
Convenience function for initializing compressed/uncompressed size.
Definition at line 46 of file XrdZipLFH.hh.
|
inline |
Definition at line 126 of file XrdZipLFH.hh.
References compressedSize, XrdZip::Extra::CPMSIZE, extra, XrdZip::Extra::Find(), XrdZip::Extra::NONE, XrdZip::Extra::UCMPSIZE, and uncompressedSize.
Referenced by LFH().
|
inline |
Serialize the object into a buffer.
Definition at line 106 of file XrdZipLFH.hh.
References compressedSize, compressionMethod, XrdZip::copy_bytes(), XrdZip::dos_timestmp::date, extra, extraLength, filename, filenameLength, generalBitFlag, lfhSign, minZipVersion, XrdZip::dos_timestmp::time, timestmp, uncompressedSize, and ZCRC32.
uint32_t XrdZip::LFH::compressedSize |
Definition at line 162 of file XrdZipLFH.hh.
Referenced by LFH(), ParseExtra(), and Serialize().
uint16_t XrdZip::LFH::compressionMethod |
Definition at line 159 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().
std::unique_ptr<Extra> XrdZip::LFH::extra |
Definition at line 167 of file XrdZipLFH.hh.
Referenced by LFH(), ParseExtra(), and Serialize().
uint16_t XrdZip::LFH::extraLength |
Definition at line 165 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().
std::string XrdZip::LFH::filename |
Definition at line 166 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().
uint16_t XrdZip::LFH::filenameLength |
Definition at line 164 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().
uint16_t XrdZip::LFH::generalBitFlag |
Definition at line 158 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().
|
static |
Definition at line 174 of file XrdZipLFH.hh.
Referenced by LFH().
|
static |
Local File Header signature.
Definition at line 173 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().
uint16_t XrdZip::LFH::lfhSize |
Definition at line 168 of file XrdZipLFH.hh.
Referenced by LFH().
uint16_t XrdZip::LFH::minZipVersion |
Definition at line 157 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().
dos_timestmp XrdZip::LFH::timestmp |
Definition at line 160 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().
uint32_t XrdZip::LFH::uncompressedSize |
Definition at line 163 of file XrdZipLFH.hh.
Referenced by LFH(), ParseExtra(), and Serialize().
uint32_t XrdZip::LFH::ZCRC32 |
Definition at line 161 of file XrdZipLFH.hh.
Referenced by LFH(), and Serialize().