52 zip(
const std::string& aZipFilePath);
55 zip(
const void* aZipFileData, std::size_t aZipFileDataLength);
58 std::size_t
index_of(
const std::string& aFile)
const;
59 bool extract(
size_t aIndex,
const std::string& aTargetDirectory);
63 bool ok()
const {
return !iError; }
66 const uint8_t* data_front();
67 const uint8_t* data_back();
70 const uint8_t* iZipFileData;
71 std::size_t iZipFileDataLength;
74 struct dir_file_header;
76 typedef unsigned long dword;
77 typedef unsigned short word;
78 typedef unsigned char byte;
79 std::vector<const dir_file_header*> iDirEntries;
80 std::vector<std::string> iFiles;
bool extract(size_t aIndex, const std::string &aTargetDirectory)
const std::string & file_path(size_t aIndex) const
bool extract_to(size_t aIndex, buffer_type &aBuffer)
std::vector< uint8_t > buffer_type
std::size_t index_of(const std::string &aFile) const
size_t file_count() const
zip(const void *aZipFileData, std::size_t aZipFileDataLength)
zip(const std::string &aZipFilePath)
zip(buffer_type &&aZipFile)
zip(const buffer_type &aZipFile)
std::string extract_to_string(size_t aIndex)