unsigned long long ULong64_t
#define ClassDef(name, id)
Class describing an archive file containing multiple sub-files, like a ZIP or TAR archive.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Describes a ZIP archive file containing multiple sub-files.
Long64_t fDirPos
Central directory position.
Int_t ReadMemberHeader(TZIPMember *member)
Read the member header of the ZIP archive.
TZIPFile(const TZIPFile &)=delete
Int_t DecodeZip64ExtendedExtraField(TZIPMember *m, Bool_t global=kTRUE)
Decode the Zip64 extended extra field.
virtual Int_t SetCurrentMember()
Find the desired member in the member array and make it the current member.
Long64_t ReadZip64EndLocator(Long64_t pos)
Read Zip64 end of central directory locator.
Long64_t fDirSize
Central directory size.
Int_t ReadZip64EndRecord(Long64_t pos)
Read Zip64 end of central directory record.
UInt_t Get(const void *buffer, Int_t bytes)
Read a "bytes" long little-endian integer value from "buffer".
Int_t ReadDirectory()
Read the directory of the ZIP archive.
Int_t ReadEndHeader(Long64_t pos)
Read the end header of the ZIP archive including the archive comment at the current file position.
ULong64_t Get64(const void *buffer, Int_t bytes)
Read a 8 byte long little-endian integer value from "buffer".
TZIPFile & operator=(const TZIPFile &)=delete
Long64_t FindEndHeader()
Find the end header of the ZIP archive. Returns 0 in case of error.
Long64_t fDirOffset
Central directory offset (from the beginning of the archive)
virtual Int_t OpenArchive()
Open archive and read end-header and directory.
void Print(Option_t *option="") const
Pretty print ZIP archive members.
TString fComment
Archive comment.
EZIPConstants
ZIP archive constants.
@ kZIP64_EXTENDED_MAGIC_OFF
@ kZIP64_EDR_DIR_SIZE_LEN
@ kZIP64_EDR_VERS_EXT_LEN
@ kZIP64_EXTENDED_USIZE_OFF
@ kZIP64_EXTENDED_CSIZE_LEN
@ kZIP64_EXTENTED_CSIZE_OFF
@ kZIP64_EDR_DIR_SIZE_OFF
@ kZIP64_EXTENDED_USIZE_LEN
@ kZIP64_EDL_TOTAL_DISK_OFF
@ kMAX_SIZE
Max size of things.
@ kZIP64_EDL_REC_OFFSET_OFF
@ kZIP64_EDR_DIR_DISK_LEN
@ kZIP64_EDR_VERS_MADE_OFF
@ kDEFLATED
Stored using deflate.
@ kZIP64_EDR_TOTAL_HDRS_LEN
@ kZIP64_EXTENDED_HDR_OFFSET_LEN
@ kZIP64_EXTENDED_SIZE_LEN
@ kZIP64_EDR_DISK_HDRS_OFF
@ kZIP64_EDR_DISK_HDRS_LEN
@ kZIP64_EDR_VERS_MADE_LEN
@ kZIP64_EXTENDED_MAGIC
Zip64 Extended Information Extra Field.
@ kZIP64_EDL_REC_OFFSET_LEN
@ kZIP64_EDR_VERS_EXT_OFF
@ kZIP64_EDL_TOTAL_DISK_LEN
@ kZIP64_EDR_DIR_OFFSET_OFF
@ kZIP64_EDR_HEADER_MAGIC
@ kZIP64_EXTENDED_DISK_OFF
@ kZIP64_EDR_DIR_OFFSET_LEN
@ kMAX_VAR_LEN
Max variable-width field length.
@ kZIP64_EDL_HEADER_MAGIC
@ kZIP64_EDR_DIR_DISK_OFF
@ kZIP64_EXTENDED_DISK_LEN
@ kZIP64_EXTENDED_SIZE_OFF
@ kZIP_MAGIC_LEN
Length of magic's.
@ kZIP64_EXTENDED_MAGIC_LEN
@ kZIP64_EDR_TOTAL_HDRS_OFF
@ kZIP64_EXTENDED_HDR_OFFSET_OFF
A ZIP archive consists of files compressed with the popular ZLIB compression algorithm; this class re...
UInt_t fLevel
Compression level.
void Print(Option_t *option="") const
Pretty print basic ZIP member info.
UInt_t fGlobalLen
Length of extra directory data.
UInt_t fCRC32
CRC-32 for all decompressed data.
UInt_t fAttrInt
Internal file attributes.
UInt_t fLocalLen
Length of extra file header data.
virtual ~TZIPMember()
Cleanup.
TZIPMember()
Default ctor.
UInt_t GetAttrInt() const
UInt_t fMethod
Compression type.
UInt_t GetGlobalLen() const
UInt_t fAttrExt
External file attributes.
TZIPMember & operator=(const TZIPMember &rhs)
Assignment operator.
void * fGlobal
Extra directory data.
UInt_t GetAttrExt() const
UInt_t GetLocalLen() const
void * fLocal
Extra file header data.