136 TZIPFile(
const char *archive,
const char *member,
TFile *file);
unsigned long long ULong64_t
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t bytes
Class describing an archive file containing multiple sub-files, like a ZIP or TAR archive.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
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
void Print(Option_t *option="") const override
Pretty print ZIP archive members.
Int_t DecodeZip64ExtendedExtraField(TZIPMember *m, Bool_t global=kTRUE)
Decode the Zip64 extended extra field.
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.
Int_t SetCurrentMember() override
Find the desired member in the member array and make it the current member.
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)
TString fComment
Archive comment.
Int_t OpenArchive() override
Open archive and read end-header and directory.
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.
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.
TZIPMember()
Default ctor.
UInt_t GetAttrInt() const
UInt_t fMethod
Compression type.
void Print(Option_t *option="") const override
Pretty print basic ZIP member info.
UInt_t GetGlobalLen() const
~TZIPMember() override
Cleanup.
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.