xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
XrdZip::EOCD Struct Reference

#include <XrdZipEOCD.hh>

Public Member Functions

 EOCD (const char *buffer, uint32_t maxSize=0)
 Constructor from buffer.
 
 EOCD (uint64_t cdoff, uint32_t cdcnt, uint32_t cdsize)
 Constructor from last LFH + CDFH.
 
void Serialize (buffer_t &buffer)
 Serialize the object into a buffer.
 
std::string ToString ()
 Convert the EOCD into a string for logging purposes.
 

Static Public Member Functions

static const char * Find (const char *buffer, uint64_t size)
 

Public Attributes

uint16_t nbDisk
 
uint16_t nbDiskCd
 
uint16_t nbCdRecD
 
uint16_t nbCdRec
 
uint32_t cdSize
 
uint32_t cdOffset
 
uint16_t commentLength
 
std::string comment
 
uint16_t eocdSize
 
bool useZip64
 

Static Public Attributes

static const uint32_t eocdSign = 0x06054b50
 
static const uint16_t eocdBaseSize = 22
 
static const uint16_t maxCommentLength = 65535
 

Constructor & Destructor Documentation

◆ EOCD() [1/2]

XrdZip::EOCD::EOCD ( const char *  buffer,
uint32_t  maxSize = 0 
)
inline

Constructor from buffer.

References cdOffset, cdSize, comment, commentLength, eocdBaseSize, eocdSize, nbCdRec, nbCdRecD, nbDisk, nbDiskCd, and useZip64.

◆ EOCD() [2/2]

XrdZip::EOCD::EOCD ( uint64_t  cdoff,
uint32_t  cdcnt,
uint32_t  cdsize 
)
inline

Constructor from last LFH + CDFH.

References cdOffset, cdSize, commentLength, eocdBaseSize, eocdSize, nbCdRec, nbCdRecD, and useZip64.

Member Function Documentation

◆ Find()

static const char * XrdZip::EOCD::Find ( const char *  buffer,
uint64_t  size 
)
inlinestatic

References eocdBaseSize, and eocdSign.

◆ Serialize()

void XrdZip::EOCD::Serialize ( buffer_t buffer)
inline

Serialize the object into a buffer.

References cdOffset, cdSize, comment, commentLength, XrdZip::copy_bytes(), eocdSign, nbCdRec, nbCdRecD, nbDisk, and nbDiskCd.

◆ ToString()

std::string XrdZip::EOCD::ToString ( )
inline

Convert the EOCD into a string for logging purposes.

References cdOffset, cdSize, comment, commentLength, nbCdRec, nbCdRecD, nbDisk, and nbDiskCd.

Member Data Documentation

◆ cdOffset

uint32_t XrdZip::EOCD::cdOffset

◆ cdSize

uint32_t XrdZip::EOCD::cdSize

◆ comment

std::string XrdZip::EOCD::comment

Referenced by EOCD(), Serialize(), and ToString().

◆ commentLength

uint16_t XrdZip::EOCD::commentLength

Referenced by EOCD(), EOCD(), Serialize(), and ToString().

◆ eocdBaseSize

const uint16_t XrdZip::EOCD::eocdBaseSize = 22
static

Referenced by EOCD(), EOCD(), and Find().

◆ eocdSign

const uint32_t XrdZip::EOCD::eocdSign = 0x06054b50
static

Referenced by Find(), and Serialize().

◆ eocdSize

uint16_t XrdZip::EOCD::eocdSize

Referenced by EOCD(), and EOCD().

◆ maxCommentLength

const uint16_t XrdZip::EOCD::maxCommentLength = 65535
static

◆ nbCdRec

uint16_t XrdZip::EOCD::nbCdRec

Referenced by EOCD(), EOCD(), Serialize(), and ToString().

◆ nbCdRecD

uint16_t XrdZip::EOCD::nbCdRecD

Referenced by EOCD(), EOCD(), Serialize(), and ToString().

◆ nbDisk

uint16_t XrdZip::EOCD::nbDisk

Referenced by EOCD(), Serialize(), and ToString().

◆ nbDiskCd

uint16_t XrdZip::EOCD::nbDiskCd

Referenced by EOCD(), Serialize(), and ToString().

◆ useZip64

bool XrdZip::EOCD::useZip64

Referenced by EOCD(), and EOCD().


The documentation for this struct was generated from the following file: