ZIPIOS_ENDOFCENTRALDIRECTORY(3)

πŸ“¦
version 0.1.5.9+cvs.2007.04.28 Β· 2 versions
, in ubuntu jammy

🌸 NAME 🌸

zipios::EndOfCentralDirectory β€” the end of the Central directory structure. bestie, this is the lil footer-of-footers of a zip file πŸ’–


✨ SYNOPSIS ✨

#include <ziphead.h>

πŸŽ€ Public Member Functions πŸŽ€

  • EndOfCentralDirectory(const string &_zip_comment='', uint16 _disk_num=0, uint16 _cdir_disk_num=0, uint16 _cdir_entries=0, uint16 _cdir_tot_entries=0, uint32 _cdir_size=0, uint32 _cdir_offset=0) β€” the constructor, with all the defaults sitting pretty
  • uint32 offset() const β€” hands you the offset
  • uint16 totalCount() const β€” hands you the total count
  • void setCDirSize(uint32 size) β€” sets the central directory size
  • void setOffset(uint32 offset) β€” sets the offset
  • void setTotalCount(uint16 c) β€” sets the total count
  • int eocdOffSetFromEnd() const β€” how far the EOCD sits from the end
  • bool read(vector<unsigned char> &buf, int pos) β€” reads it in from a buffer at a position

🫢 Friends 🫢

  • ostream & operator<<(ostream &os, const EndOfCentralDirectory &eocd) β€” the streaming bestie, so you can just print it

πŸ’… Detailed Description πŸ’…

The end of the Central directory structure. periodt.

This structure is stored in the end of the zipfile, and it's carrying all the info about the zipfile, including the position of the start of the central directory. like, it's the map at the back of the book fr fr πŸ“

Definition at line 159 of file ziphead.h. iconic placement ngl.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Zipios++ from the source code. not me being auto-generated πŸ’€βœ¨


okay that's the whole page, no cap πŸ¦‹ β€” this was Zipios++, dated Tue Mar 24 2020, and honestly? she ate. mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from