#include <string.h>
#include "hyport.h"
#include "zipsup.h"
#include "hylib.h"
#include "hyzipnls.h"
#include "zlib.h"
#include "hythread.h"
Functions | |
I_32 | zip_getZipEntryData (HyPortLibrary *portLib, HyZipFile *zipFile, HyZipEntry *entry, U_8 *buffer, U_32 bufferSize) |
Attempt to read and uncompress the data for the zip entry entry. | |
I_32 | zip_getZipEntryFromOffset (HyPortLibrary *portLib, HyZipFile *zipFile, HyZipEntry *entry, IDATA offset) |
Attempt to read a zip entry at offset from the zip file provided. | |
I_32 | zip_establishCache (HyPortLibrary *portLib, HyZipFile *zipFile) |
Called to set up a cache when a zip file is opened with a cachePool but without a cache, or when the current cache is found to be invalid in some way. | |
void | zip_resetZipFile (HyPortLibrary *portLib, HyZipFile *zipFile, IDATA *nextEntryPointer) |
Reset nextEntryPointer to the first entry in the file. | |
I_32 | zip_getNextZipEntry (HyPortLibrary *portLib, HyZipFile *zipFile, HyZipEntry *zipEntry, IDATA *nextEntryPointer) |
Read the next zip entry at nextEntryPointer into zipEntry. | |
I_32 | zip_getZipEntryExtraField (HyPortLibrary *portLib, HyZipFile *zipFile, HyZipEntry *entry, U_8 *buffer, U_32 bufferSize) |
Read the extra field of entry from the zip file filename. | |
void | zip_initZipEntry (HyPortLibrary *portLib, HyZipEntry *entry) |
Initialize a zip entry. | |
I_32 | zip_openZipFile (HyPortLibrary *portLib, char *filename, HyZipFile *zipFile, HyZipCachePool *cachePool) |
Attempt to open a zip file. | |
void | zip_freeZipEntry (HyPortLibrary *portLib, HyZipEntry *entry) |
Free any memory associated with a zip entry. | |
I_32 VMCALL | zip_closeZipFile (HyPortLibrary *portLib, struct HyZipFile *zipFile) |
Attempt to close the zipfile. | |
I_32 | zip_getZipEntryComment (HyPortLibrary *portLib, HyZipFile *zipFile, HyZipEntry *entry, U_8 *buffer, U_32 bufferSize) |
Read the file comment for entry. | |
I_32 | zip_getZipEntry (HyPortLibrary *portLib, HyZipFile *zipFile, HyZipEntry *entry, const char *filename, BOOLEAN findDirectory) |
Attempt to find and read the zip entry corresponding to filename. |
|
Attempt to close the zipfile.
|
|
Called to set up a cache when a zip file is opened with a cachePool but without a cache, or when the current cache is found to be invalid in some way.
|
|
Free any memory associated with a zip entry.
|
|
Read the next zip entry at nextEntryPointer into zipEntry. Any memory held onto by zipEntry may be lost, and therefore MUST be freed with zip_freeZipEntry first.
|
|
Attempt to find and read the zip entry corresponding to filename. If found, read the entry into the parameter entry. If an uncached entry is found, the filename field will be filled in. This memory will have to be freed with zip_freeZipEntry.
|
|
Read the file comment for entry. If buffer is non-NULL, it is used, but not held onto by entry. If buffer is NULL, memory is allocated and held onto by entry, and thus should later be freed with zip_freeZipEntry.
|
|
Attempt to read and uncompress the data for the zip entry entry. If buffer is non-NULL it is used, but not explicitly held onto by the entry. If buffer is NULL, memory is allocated and held onto by the entry, and thus should later be freed with zip_freeZipEntry.
|
|
Read the extra field of entry from the zip file filename. buffer is used if non-NULL, but is not held onto by entry. If buffer is NULL, memory is allocated and held onto by entry, and MUST be freed later with zip_freeZipEntry.
|
|
Attempt to read a zip entry at offset from the zip file provided. If found, read into entry.
|
|
Initialize a zip entry. Should be called before the entry is passed to any other zip support functions
|
|
Attempt to open a zip file. If the cache pool is non-NULL, the cachePool will be used to find a suitable cache, and if none can be found it will create one and add it to cachePool. Zip support is responsible for managing the lifetime of the cache.
|
|
Reset nextEntryPointer to the first entry in the file.
|