![]() |
Humble Framework for SkyOS |
#include <HZipFile.h>
Inheritance diagram for HZipFile:

Definition at line 34 of file HZipFile.h.
Public Member Functions | |
| virtual ErrCode | Close (void) |
| Closes the file. | |
| virtual ErrCode | Extract (StringPtr pstrSrc, StringPtr pstrDst=NULL) |
| Extracts a file from the .zip archive. | |
| ErrCode | Open (const HFilename &fn, uint32 uFlags) |
| Opens the file, creating it if necessary. | |
| ErrCode | UnZip (StringPtr pstrSrc, HMemory &bufOut) |
| Unzips a file from the .zip archive. | |
Protected Member Functions | |
| ZipDirFileHeader * | findDir (StringPtr pstrFile) const |
| Looks for a file in the directory data. | |
| ErrCode | inflateData (const ZipLocalHeader &header, HMemory &bufData) |
| Inflates a data stream. | |
| ErrCode | unstoreData (ZipLocalHeader const &header, HMemory &bufData) |
| "Unstores" a data stream | |
Protected Attributes | |
| HZipFile::ZipLocalHeader | aligned |
| HZipFile::ZipLocalHeader | packed |
| HZipFile::ZipDirHeader | aligned |
| HZipFile::ZipDirHeader | packed |
| HZipFile::ZipDirFileHeader | aligned |
| HZipFile::ZipDirFileHeader | packed |
| int32 | m_nEntries |
| Count of entries (files) in zip archive. | |
| HMemory | m_directory |
| Raw directory data. | |
Data Structures | |
| struct | ZipDirFileHeader |
| struct | ZipDirHeader |
| struct | ZipLocalHeader |
|
|
This method traverses the .zip directory structure looking for a file. The file name and path must match exactly.
Definition at line 134 of file HZipFile.h. |
|
||||||||||||
|
This method reads in compressed data from the current file position and uses the zlib library to inflate it.
Definition at line 179 of file HZipFile.h. |
|
||||||||||||
|
This method reads in uncompressed data from the current file position. The following errors may be returned:
Definition at line 254 of file HZipFile.h. |
|
|
Reimplemented from HFile. Definition at line 279 of file HZipFile.h. |
|
||||||||||||
|
This method looks for a given source file in the .zip archive and reads in the file's contents, inflating it if needed. The resulting data is then written out to a file. Although hierarchical filename can be used, the caller is responsible for ensuring that any or all subdirectories exist.
Reimplemented in HResMgr. Definition at line 302 of file HZipFile.h. |
|
||||||||||||
|
Definition at line 355 of file HZipFile.h. |
|
||||||||||||
|
Definition at line 442 of file HZipFile.h. |
2006.01.09-16:37