|
xrootd
|
#include <XrdZipExtra.hh>
Public Types | |
| enum | Ovrflw { NONE = 0, UCMPSIZE = 1, CPMSIZE = 2, OFFSET = 4, NBDISK = 8 } |
Public Member Functions | |
| Extra (uint64_t fileSize) | |
| Constructor from file size. More... | |
| Extra (Extra *extra, uint64_t offset) | |
| Constructor from another extra + offset. More... | |
| Extra () | |
| Default constructor. More... | |
| void | FromBuffer (const char *&buffer, uint16_t exsize, uint8_t flags) |
| Constructor from buffer. More... | |
| void | Serialize (buffer_t &buffer) |
| Serialize the extra field into a buffer. More... | |
Static Public Member Functions | |
| static const char * | Find (const char *buffer, uint16_t length) |
Public Attributes | |
| uint16_t | dataSize |
| uint64_t | uncompressedSize |
| uint64_t | compressedSize |
| uint64_t | offset |
| uint32_t | nbDisk |
| uint16_t | totalSize |
Static Public Attributes | |
| static const uint16_t | headerID = 0x0001 |
| The extra field marker. More... | |
|
inline |
Constructor from file size.
References compressedSize, dataSize, nbDisk, offset, totalSize, and uncompressedSize.
|
inline |
Constructor from another extra + offset.
References compressedSize, dataSize, nbDisk, offset, totalSize, and uncompressedSize.
|
inline |
Default constructor.
|
inlinestatic |
Finds the Zip64 extended information extra field
References headerID.
Referenced by XrdZip::LFH::ParseExtra(), and XrdZip::CDFH::ParseExtra().
|
inline |
Constructor from buffer.
References compressedSize, CPMSIZE, dataSize, XrdZip::from_buffer(), headerID, NBDISK, nbDisk, OFFSET, offset, UCMPSIZE, and uncompressedSize.
|
inline |
Serialize the extra field into a buffer.
References compressedSize, XrdZip::copy_bytes(), dataSize, headerID, offset, totalSize, and uncompressedSize.
| uint64_t XrdZip::Extra::compressedSize |
Referenced by Extra(), FromBuffer(), and Serialize().
| uint16_t XrdZip::Extra::dataSize |
Referenced by Extra(), FromBuffer(), and Serialize().
|
static |
The extra field marker.
Referenced by Find(), FromBuffer(), and Serialize().
| uint32_t XrdZip::Extra::nbDisk |
Referenced by Extra(), and FromBuffer().
| uint64_t XrdZip::Extra::offset |
Referenced by Extra(), FromBuffer(), and Serialize().
| uint16_t XrdZip::Extra::totalSize |
Referenced by Extra(), and Serialize().
| uint64_t XrdZip::Extra::uncompressedSize |
Referenced by Extra(), FromBuffer(), and Serialize().
1.8.5