2 #ifndef ENDOFCENTRALDIRECTORY_HPP
3 #define ENDOFCENTRALDIRECTORY_HPP
58 void write(std::ostream& os);
void setCount(size_t c)
Set the number of entries.
void write(std::ostream &os)
Write the ZipEndOfCentralDirectory structure to a stream.
size_t getCount() const
Retrieve the number of entries.
offset_t getOffset() const
Retrieve the offset of the Central Directory.
void setCentralDirectorySize(size_t size)
Define the size of the central directory.
void setOffset(offset_t new_offset)
Offset of the Central Directory.
offset_t m_central_directory_offset
Marker at the end of a Zip archive file.
size_t m_central_directory_entries
std::string m_zip_comment
std::vector< unsigned char > buffer_t
A buffer of characters.
Various functions used throughout the library.
ZipEndOfCentralDirectory(std::string const &zip_comment="")
Initialize an ZipEndOfCentralDirectory object.
size_t m_central_directory_size
size_t getCentralDirectorySize() const
Retrieve the size of the Central Directory in bytes.
bool read(::zipios::buffer_t const &buf, size_t pos)
Attempt to read an ZipEndOfCentralDirectory structure.