|
XRootD
|
A data structure representing ZIP Local File Header. More...
#include <XrdZipLFH.hh>
Collaboration diagram for XrdZip::LFH:Public Member Functions | |
| LFH (const char *buffer, const uint64_t bufferSize=0) | |
| Constructor from buffer. | |
| LFH (const std::string &filename, uint32_t crc, off_t fileSize, time_t time) | |
| Constructor. | |
| void | ParseExtra (const char *buffer, uint16_t length) |
| void | Serialize (buffer_t &buffer) |
| Serialize the object into a buffer. | |
Static Public Member Functions | |
| static uint32_t | initSize (const off_t &fileSize) |
| Convenience function for initializing compressed/uncompressed size. | |
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. | |
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 compressedSize, compressionMethod, extra, extraLength, filename, filenameLength, generalBitFlag, initSize(), lfhBaseSize, lfhSize, minZipVersion, timestmp, uncompressedSize, and ZCRC32.
Here is the call graph for this function:
|
inline |
Constructor from buffer.
Definition at line 71 of file XrdZipLFH.hh.
References compressedSize, compressionMethod, extraLength, filename, filenameLength, XrdZip::from_buffer(), generalBitFlag, lfhBaseSize, lfhSign, lfhSize, minZipVersion, ParseExtra(), timestmp, uncompressedSize, and ZCRC32.
Here is the call graph for this function:
|
inlinestatic |
Convenience function for initializing compressed/uncompressed size.
Definition at line 46 of file XrdZipLFH.hh.
References XrdZip::ovrflw< UINT >::value.
Referenced by LFH().
Here is the caller graph for this function:
|
inline |
Definition at line 126 of file XrdZipLFH.hh.
References compressedSize, XrdZip::Extra::CPMSIZE, extra, XrdZip::Extra::Find(), XrdZip::Extra::NONE, XrdZip::Extra::UCMPSIZE, uncompressedSize, and XrdZip::ovrflw< UINT >::value.
Referenced by LFH().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Serialize the object into a buffer.
Definition at line 106 of file XrdZipLFH.hh.
References compressedSize, compressionMethod, XrdZip::copy_bytes(), extra, extraLength, filename, filenameLength, generalBitFlag, lfhSign, minZipVersion, timestmp, uncompressedSize, and ZCRC32.
Here is the call graph for this function:| uint32_t XrdZip::LFH::compressedSize |
Definition at line 162 of file XrdZipLFH.hh.
Referenced by LFH(), LFH(), ParseExtra(), and Serialize().
| uint16_t XrdZip::LFH::compressionMethod |
Definition at line 159 of file XrdZipLFH.hh.
Referenced by LFH(), 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(), LFH(), and Serialize().
| std::string XrdZip::LFH::filename |
Definition at line 166 of file XrdZipLFH.hh.
Referenced by LFH(), LFH(), and Serialize().
| uint16_t XrdZip::LFH::filenameLength |
Definition at line 164 of file XrdZipLFH.hh.
Referenced by LFH(), LFH(), and Serialize().
| uint16_t XrdZip::LFH::generalBitFlag |
Definition at line 158 of file XrdZipLFH.hh.
Referenced by LFH(), LFH(), and Serialize().
|
static |
Definition at line 174 of file XrdZipLFH.hh.
|
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.
| uint16_t XrdZip::LFH::minZipVersion |
Definition at line 157 of file XrdZipLFH.hh.
Referenced by LFH(), LFH(), and Serialize().
| dos_timestmp XrdZip::LFH::timestmp |
Definition at line 160 of file XrdZipLFH.hh.
Referenced by LFH(), LFH(), and Serialize().
| uint32_t XrdZip::LFH::uncompressedSize |
Definition at line 163 of file XrdZipLFH.hh.
Referenced by LFH(), LFH(), ParseExtra(), and Serialize().
| uint32_t XrdZip::LFH::ZCRC32 |
Definition at line 161 of file XrdZipLFH.hh.
Referenced by LFH(), LFH(), and Serialize().