Nebula
|
#include <zipfileentry.h>
A file entry in a zip archive.
The ZipFileEntry class is thread-safe, all public methods can be invoked from on the same object from different threads.
Public Member Functions | |
ZipFileEntry () | |
constructor | |
~ZipFileEntry () | |
destructor | |
const Util::StringAtom & | GetName () const |
get name of the file entry | |
IO::Stream::Size | GetFileSize () const |
get the uncompressed file size in bytes | |
bool | Open (const Util::String &password="") |
open the zip file | |
void | Close () |
close the zip file | |
bool | Read (void *buf, IO::Stream::Size bufSize) const |
read the entire content into the provided memory buffer | |
Private Member Functions | |
void | Setup (const Util::StringAtom &name, unzFile zipFileHandle, Threading::CriticalSection *critSect) |
setup the file entry object | |
Private Attributes | |
Threading::CriticalSection * | archiveCritSect |
Util::StringAtom | name |
unzFile | zipFileHandle |
unz64_file_pos | filePosInfo |
uint64_t | uncompressedSize |
Friends | |
class | ZipArchive |
IO::ZipFileEntry::ZipFileEntry | ( | ) |
constructor
IO::ZipFileEntry::~ZipFileEntry | ( | ) |
destructor
void IO::ZipFileEntry::Close | ( | ) |
close the zip file
|
inline |
get the uncompressed file size in bytes
|
inline |
get name of the file entry
bool IO::ZipFileEntry::Open | ( | const Util::String & | password = "" | ) |
open the zip file
bool IO::ZipFileEntry::Read | ( | void * | buf, |
IO::Stream::Size | bufSize ) const |
read the entire content into the provided memory buffer
|
private |
setup the file entry object
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |