ManaPlus
|
Functions | |
bool | readArchiveInfo (ZipEntry *entry) |
void | reportZlibError (std::string &text, int err) |
std::string | getZlibError (int err) |
uint8_t * | readCompressedFile (ZipLocalHeader *header) |
uint8_t * | readFile (ZipLocalHeader *header) |
void | reportZlibError (const std::string &text, const int err) |
uint8_t * | readCompressedFile (const ZipLocalHeader *const header) |
const uint8_t * | readFile (const ZipLocalHeader *const header) |
std::string VirtFs::ZipReader::getZlibError | ( | int | err | ) |
bool VirtFs::ZipReader::readArchiveInfo | ( | ZipEntry * | entry | ) |
Definition at line 75 of file zipreader.cpp.
References CAST_S32, CAST_U32, VirtFs::ZipLocalHeader::compressed, VirtFs::ZipLocalHeader::compressSize, VirtFs::ZipLocalHeader::dataOffset, delete2, Actions::dirs(), dirSeparator, VirtFs::ZipLocalHeader::fileName, findLast(), Logger::log(), logger, VirtFs::ZipEntry::mDirs, VirtFs::ZipEntry::mHeaders, prepareFsPath(), readVal, reportAlways, restrict, VirtFs::FsEntry::root, swapVal16, swapVal32, VirtFs::ZipLocalHeader::uncompressSize, and VirtFs::ZipLocalHeader::zipEntry.
Referenced by VirtFs::mountZip(), and VirtFs::mountZip2().
uint8_t* VirtFs::ZipReader::readCompressedFile | ( | const ZipLocalHeader *const | header | ) |
uint8_t* VirtFs::ZipReader::readCompressedFile | ( | ZipLocalHeader * | header | ) |
Definition at line 243 of file zipreader.cpp.
References reportAlways, and restrict.
Referenced by readFile().
const uint8_t* VirtFs::ZipReader::readFile | ( | const ZipLocalHeader *const | header | ) |
uint8_t* VirtFs::ZipReader::readFile | ( | ZipLocalHeader * | header | ) |
Definition at line 276 of file zipreader.cpp.
References CAST_U32, PRAGMACLANG6GCC, readCompressedFile(), reportAlways, reportZlibError(), and restrict.
Referenced by VirtFs::FsZip::loadFile(), and VirtFs::FsZip::openRead().
void VirtFs::ZipReader::reportZlibError | ( | const std::string & | text, |
const int | err | ||
) |
void VirtFs::ZipReader::reportZlibError | ( | std::string & | text, |
int | err | ||
) |
Definition at line 224 of file zipreader.cpp.
References getZlibError(), and reportAlways.
Referenced by readFile().