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