|
Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
|
The IoIntfZipReader, which implements the abstract ZipReader interface, makes it possible for a ZipIo to open a ZIP file via another IoInterface.
#include <IoIntfZipReader.h>

Public Member Functions | |
| IoIntfZipReader () | |
| Uninitialized storage; call IoIntfZipReader_constructor before use or destruction. More... | |
| IoIntfZipReader (IoIntf *io, const char *pathName) | |
| The IoIntfZipReader constructor opens the ZIP file for reading. More... | |
| ~IoIntfZipReader () | |
| Close any open resource, ignoring the close status. More... | |
| int | close () |
| Close and consume the underlying resource, even if closing fails. More... | |
| int | getECode () |
Public Member Functions inherited from ZipReader | |
| ZipReader () | |
| Uninitialized storage; call ZipReader_constructor before use. More... | |
| ZipReader (CspReader_Read r, U32 zipFileSize) | |
| Initialize a reader interface; no ZIP data is read yet. More... | |
Public Member Functions inherited from CspReader | |
| bool | isValid () |
| int | read (void *data, U32 offset, U32 size, bool blockStart) |
| Invoke the installed CspReader_Read callback synchronously. More... | |
| void | setIsValid () |
| Mark the implementation initialized after opening/checking its data. More... | |
| IoIntfZipReader::IoIntfZipReader | ( | ) |
Uninitialized storage; call IoIntfZipReader_constructor before use or destruction.
| IoIntfZipReader::IoIntfZipReader | ( | IoIntf * | io, |
| const char * | pathName | ||
| ) |
The IoIntfZipReader constructor opens the ZIP file for reading.
| io | Borrowed I/O interface. Keep it alive until the reader closes. The interface must support seeking, or provide the seekAndRead property. |
| pathName | Required NUL-terminated ZIP file path relative to io; used during construction only. File size must fit U32 (no ZIP64). Check getECode and inherited CspReader::isValid before use. |
| IoIntfZipReader::~IoIntfZipReader | ( | ) |
Close any open resource, ignoring the close status.
Destroy dependent ZipIo objects and stop reads before destruction.
| int IoIntfZipReader::close | ( | ) |
Close and consume the underlying resource, even if closing fails.
Do not use a dependent ZipIo after this call.
| int IoIntfZipReader::getECode | ( | ) |