85 return std::make_shared<DirectoryEntry>(*
this);
138 uint32_t result(crc32(0L, Z_NULL, 0));
157 Bytef buf[64 * 1024];
158 in.read(
reinterpret_cast<char *
>(buf),
sizeof(buf));
163 result = crc32(result, buf, in.gcount());
A file entry that does not use compression.
virtual ~DirectoryEntry() override
Clean up a DirectoryEntry object.
virtual pointer_t clone() const override
Create a copy of the DirectoryEntry.
virtual bool isEqual(FileEntry const &file_entry) const override
Compare two file entries for equality.
DirectoryEntry(FilePath const &filename, std::string const &comment=std::string())
Initialize a DirectoryEntry object.
uint32_t computeCRC32() const
Compute the CRC32 of this file.
A FileEntry represents an entry in a FileCollection.
std::size_t m_uncompressed_size
std::shared_ptr< FileEntry > pointer_t
virtual bool isEqual(FileEntry const &file_entry) const
Compare two file entries for equality.
Handle a file path and name and its statistics.
bool isDirectory() const
Check whether the file is a directory.
std::time_t lastModificationTime() const
Get the last modification time of the file.
size_t fileSize() const
Get the size of the file.
bool isRegular() const
Check whether the file is a regular file.
std::string filename() const
Retrieve the basename.
An IOException is used to signal an I/O error.
Define the zipios::DirectoryEntry class.
The zipios namespace includes the Zipios library definitions.
Various functions used throughout the library.
Various exceptions used throughout the Zipios library, all based on zipios::Exception.