A file entry in a zip archive.
Definition zipfileentry.h:22
Util::StringAtom name
Definition zipfileentry.h:48
const Util::StringAtom & GetName() const
get name of the file entry
Definition zipfileentry.h:58
bool Open(const Util::String &password="")
open the zip file
Definition zipfileentry.cc:64
bool Read(void *buf, IO::Stream::Size bufSize) const
read the entire content into the provided memory buffer
Definition zipfileentry.cc:114
ZipFileEntry()
constructor
Definition zipfileentry.cc:17
IO::Stream::Size GetFileSize() const
get the uncompressed file size in bytes
Definition zipfileentry.h:67
void Close()
close the zip file
Definition zipfileentry.cc:100
unz64_file_pos filePosInfo
Definition zipfileentry.h:50
uint64_t uncompressedSize
Definition zipfileentry.h:51
~ZipFileEntry()
destructor
Definition zipfileentry.cc:28
unzFile zipFileHandle
Definition zipfileentry.h:49
Threading::CriticalSection * archiveCritSect
Definition zipfileentry.h:47
void Setup(const Util::StringAtom &name, unzFile zipFileHandle, Threading::CriticalSection *critSect)
setup the file entry object
Definition zipfileentry.cc:37