![]() |
XRootD
|
#include <XrdZipExtra.hh>
Public Types | |
enum | Ovrflw { NONE = 0 , UCMPSIZE = 1 , CPMSIZE = 2 , OFFSET = 4 , NBDISK = 8 } |
Public Member Functions | |
Extra () | |
Default constructor. More... | |
Extra (Extra *extra, uint64_t offset) | |
Constructor from another extra + offset. More... | |
Extra (uint64_t fileSize) | |
Constructor from file size. 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 | |
uint64_t | compressedSize |
uint16_t | dataSize |
uint32_t | nbDisk |
uint64_t | offset |
uint16_t | totalSize |
uint64_t | uncompressedSize |
Static Public Attributes | |
static const uint16_t | headerID = 0x0001 |
The extra field marker. More... | |
Definition at line 38 of file XrdZipExtra.hh.
|
inline |
Constructor from file size.
Definition at line 43 of file XrdZipExtra.hh.
References compressedSize, dataSize, nbDisk, offset, totalSize, and uncompressedSize.
|
inline |
Constructor from another extra + offset.
Definition at line 66 of file XrdZipExtra.hh.
References compressedSize, dataSize, extra, nbDisk, offset, totalSize, and uncompressedSize.
|
inline |
|
inlinestatic |
Finds the Zip64 extended information extra field
Definition at line 101 of file XrdZipExtra.hh.
References headerID.
Referenced by XrdZip::CDFH::ParseExtra(), and XrdZip::LFH::ParseExtra().
|
inline |
Constructor from buffer.
Definition at line 117 of file XrdZipExtra.hh.
References compressedSize, CPMSIZE, dataSize, XrdZip::from_buffer(), headerID, NBDISK, nbDisk, OFFSET, offset, UCMPSIZE, and uncompressedSize.
|
inline |
Serialize the extra field into a buffer.
Definition at line 142 of file XrdZipExtra.hh.
References compressedSize, XrdZip::copy_bytes(), dataSize, headerID, offset, totalSize, and uncompressedSize.
uint64_t XrdZip::Extra::compressedSize |
Definition at line 176 of file XrdZipExtra.hh.
Referenced by Extra(), FromBuffer(), and Serialize().
uint16_t XrdZip::Extra::dataSize |
Definition at line 174 of file XrdZipExtra.hh.
Referenced by Extra(), FromBuffer(), and Serialize().
|
static |
The extra field marker.
Definition at line 172 of file XrdZipExtra.hh.
Referenced by Find(), FromBuffer(), and Serialize().
uint32_t XrdZip::Extra::nbDisk |
Definition at line 178 of file XrdZipExtra.hh.
Referenced by Extra(), and FromBuffer().
uint64_t XrdZip::Extra::offset |
Definition at line 177 of file XrdZipExtra.hh.
Referenced by Extra(), FromBuffer(), and Serialize().
uint16_t XrdZip::Extra::totalSize |
Definition at line 179 of file XrdZipExtra.hh.
Referenced by Extra(), and Serialize().
uint64_t XrdZip::Extra::uncompressedSize |
Definition at line 175 of file XrdZipExtra.hh.
Referenced by Extra(), FromBuffer(), and Serialize().