Zip::EndOfCentralDir Class Reference [Zip Code Internals]

#include <centralDir.h>

List of all members.

Public Member Functions

 EndOfCentralDir ()
virtual ~EndOfCentralDir ()
virtual bool findInStream (Stream *stream)
virtual bool read (Stream *stream)
virtual bool write (Stream *stream)
virtual void setZipComment (const char *zipComment)
virtual void setZipComment (U16 commentSize, const char *zipComment)

Public Attributes

U32 mHeaderSig
U16 mDiskNum
U16 mStartCDDiskNum
U16 mNumEntriesInThisCD
U16 mTotalEntriesInCD
U32 mCDSize
U32 mCDOffset
U16 mCommentSize
const char * mZipComment

Static Private Attributes

static const U32 mEOCDSignature = 0x06054b50
static const U32 mRecordSize = 20
 The size of the EndOfCentralDir record in the zip file, used to locate it at the end of the file.
static const U32 mEOCDSearchSize = 64 * 1024
 The number of bytes from the end of the file to start searching for the EOCD.


Constructor & Destructor Documentation

Zip::EndOfCentralDir::EndOfCentralDir (  ) 

virtual Zip::EndOfCentralDir::~EndOfCentralDir (  )  [virtual]


Member Function Documentation

virtual bool Zip::EndOfCentralDir::findInStream ( Stream stream  )  [virtual]

virtual bool Zip::EndOfCentralDir::read ( Stream stream  )  [virtual]

virtual bool Zip::EndOfCentralDir::write ( Stream stream  )  [virtual]

virtual void Zip::EndOfCentralDir::setZipComment ( const char *  zipComment  )  [virtual]

virtual void Zip::EndOfCentralDir::setZipComment ( U16  commentSize,
const char *  zipComment 
) [virtual]


Member Data Documentation

const U32 Zip::EndOfCentralDir::mEOCDSignature = 0x06054b50 [static, private]

const U32 Zip::EndOfCentralDir::mRecordSize = 20 [static, private]

The size of the EndOfCentralDir record in the zip file, used to locate it at the end of the file.

const U32 Zip::EndOfCentralDir::mEOCDSearchSize = 64 * 1024 [static, private]

The number of bytes from the end of the file to start searching for the EOCD.