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

A data structure representing ZIP Local File Header. More...

#include <XrdZipLFH.hh>

Collaboration diagram for XrdZip::LFH:
Collaboration graph
[legend]

Public Member Functions

 LFH (const std::string &filename, uint32_t crc, off_t fileSize, time_t time)
 Constructor.
 
 LFH (const char *buffer, const uint64_t bufferSize=0)
 Constructor from buffer.
 
void Serialize (buffer_t &buffer)
 Serialize the object into a buffer.
 
void ParseExtra (const char *buffer, uint16_t length)
 

Static Public Member Functions

static uint32_t initSize (const off_t &fileSize)
 Convenience function for initializing compressed/uncompressed size.
 

Public Attributes

uint16_t minZipVersion
 
uint16_t generalBitFlag
 
uint16_t compressionMethod
 
dos_timestmp timestmp
 
uint32_t ZCRC32
 
uint32_t compressedSize
 
uint32_t uncompressedSize
 
uint16_t filenameLength
 
uint16_t extraLength
 
std::string filename
 
std::unique_ptr< Extraextra
 
uint16_t lfhSize
 

Static Public Attributes

static const uint32_t lfhSign = 0x04034b50
 Local File Header signature.
 
static const uint16_t lfhBaseSize = 30
 

Detailed Description

A data structure representing ZIP Local File Header.

Constructor & Destructor Documentation

◆ LFH() [1/2]

XrdZip::LFH::LFH ( const std::string &  filename,
uint32_t  crc,
off_t  fileSize,
time_t  time 
)
inline

Constructor.

References extra, extraLength, filenameLength, lfhBaseSize, lfhSize, and minZipVersion.

◆ LFH() [2/2]

XrdZip::LFH::LFH ( const char *  buffer,
const uint64_t  bufferSize = 0 
)
inline

Member Function Documentation

◆ initSize()

static uint32_t XrdZip::LFH::initSize ( const off_t &  fileSize)
inlinestatic

Convenience function for initializing compressed/uncompressed size.

◆ ParseExtra()

void XrdZip::LFH::ParseExtra ( const char *  buffer,
uint16_t  length 
)
inline

◆ Serialize()

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

Member Data Documentation

◆ compressedSize

uint32_t XrdZip::LFH::compressedSize

Referenced by LFH(), ParseExtra(), and Serialize().

◆ compressionMethod

uint16_t XrdZip::LFH::compressionMethod

Referenced by LFH(), and Serialize().

◆ extra

std::unique_ptr<Extra> XrdZip::LFH::extra

Referenced by LFH(), ParseExtra(), and Serialize().

◆ extraLength

uint16_t XrdZip::LFH::extraLength

Referenced by LFH(), LFH(), and Serialize().

◆ filename

std::string XrdZip::LFH::filename

Referenced by LFH(), and Serialize().

◆ filenameLength

uint16_t XrdZip::LFH::filenameLength

Referenced by LFH(), LFH(), and Serialize().

◆ generalBitFlag

uint16_t XrdZip::LFH::generalBitFlag

Referenced by LFH(), and Serialize().

◆ lfhBaseSize

const uint16_t XrdZip::LFH::lfhBaseSize = 30
static

Referenced by LFH(), and LFH().

◆ lfhSign

const uint32_t XrdZip::LFH::lfhSign = 0x04034b50
static

Local File Header signature.

Referenced by LFH(), and Serialize().

◆ lfhSize

uint16_t XrdZip::LFH::lfhSize

Referenced by LFH(), and LFH().

◆ minZipVersion

uint16_t XrdZip::LFH::minZipVersion

Referenced by LFH(), LFH(), and Serialize().

◆ timestmp

dos_timestmp XrdZip::LFH::timestmp

Referenced by LFH(), and Serialize().

◆ uncompressedSize

uint32_t XrdZip::LFH::uncompressedSize

Referenced by LFH(), ParseExtra(), and Serialize().

◆ ZCRC32

uint32_t XrdZip::LFH::ZCRC32

Referenced by LFH(), and Serialize().


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