35#define UNZ_END_OF_LIST_OF_FILE (-100)
37#define UNZ_ERRNO (Z_ERRNO)
41#define UNZ_PARAMERROR (-102)
43#define UNZ_BADZIPFILE (-103)
45#define UNZ_INTERNALERROR (-104)
47#define UNZ_CRCERROR (-105)
170 uLong fileNameBufferSize,
172 uLong extraFieldBufferSize,
174 uLong commentBufferSize);
The stdio I/O callbacks the game hands to minizip's unzip API.
struct zlib_filefunc_def_s zlib_filefunc_def
The table of I/O callbacks minizip drives an archive through.
void * voidpf
minizip's opaque pointer type.
Definition ioapi.h:19
unsigned long uLong
minizip's wide unsigned integer type (zlib's uLong).
Definition ioapi.h:22
An entry's last-modified date and time, decoded from the DOS date field.
Definition unzip.h:50
unsigned int tm_year
Year, [1980, 2044].
Definition unzip.h:56
unsigned int tm_sec
Seconds after the minute, [0, 59].
Definition unzip.h:51
unsigned int tm_hour
Hours since midnight, [0, 23].
Definition unzip.h:53
unsigned int tm_mday
Day of the month, [1, 31].
Definition unzip.h:54
unsigned int tm_min
Minutes after the hour, [0, 59].
Definition unzip.h:52
unsigned int tm_mon
Months since January, [0, 11].
Definition unzip.h:55
Per-entry information taken from the entry's central-directory header.
Definition unzip.h:66
uLong size_file_extra
The length of the entry's extra field.
Definition unzip.h:76
uLong crc
The CRC-32 of the uncompressed data.
Definition unzip.h:72
uLong internal_fa
The internal file attributes.
Definition unzip.h:79
uLong version
The version that made the entry.
Definition unzip.h:67
ZPOS64_T uncompressed_size
The uncompressed size in bytes.
Definition unzip.h:74
uLong flag
The general-purpose bit flag.
Definition unzip.h:69
uLong dosDate
The last-modified date and time, in DOS format.
Definition unzip.h:71
tm_unz tmu_date
The decoded last-modified date and time.
Definition unzip.h:81
uLong size_filename
The length of the entry's name.
Definition unzip.h:75
uLong compression_method
The compression method.
Definition unzip.h:70
uLong external_fa
The external file attributes.
Definition unzip.h:80
uLong version_needed
The minimum version needed to extract the entry.
Definition unzip.h:68
uLong disk_num_start
The number of the disk the entry starts on.
Definition unzip.h:78
ZPOS64_T compressed_size
The compressed size in bytes.
Definition unzip.h:73
uLong size_file_comment
The length of the entry's comment.
Definition unzip.h:77
Archive-wide information taken from the end-of-central-directory record.
Definition unzip.h:60
ZPOS64_T number_entry
The total number of entries in the central directory.
Definition unzip.h:61
uLong size_comment
The size of the archive's global comment.
Definition unzip.h:62
int unzLocateFile(unzFile file, const char *szFileName, int iCaseSensitivity)
Locates an entry by name and makes it the current entry.
Definition unzip.c:686
struct tm_unz_s tm_unz
An entry's last-modified date and time, decoded from the DOS date field.
void * unzFile
minizip's opaque unzip archive handle.
Definition unzip.h:27
int unzReadCurrentFile(unzFile file, void *buf, unsigned len)
Reads decompressed bytes from the current entry.
Definition unzip.c:928
unsigned long long ZPOS64_T
minizip's 64-bit file-position type (zlib's ZPOS64_T).
Definition unzip.h:30
int unzCloseCurrentFile(unzFile file)
Closes the current entry opened with unzOpenCurrentFile.
Definition unzip.c:1071
int unzGetCurrentFileInfo64(unzFile file, unz_file_info64 *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
Reads the current entry's information and, optionally, its name, extra field, and comment.
Definition unzip.c:626
struct unz_global_info64_s unz_global_info64
Archive-wide information taken from the end-of-central-directory record.
struct unz_file_info64_s unz_file_info64
Per-entry information taken from the entry's central-directory header.
int unzOpenCurrentFile(unzFile file)
Opens the current entry for reading its decompressed data.
Definition unzip.c:834
unzFile unzOpen(const char *path)
Opens a .zip archive at a path using the default stdio I/O callbacks.
Definition unzip.c:396
int unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info)
Writes the archive-wide information into pglobal_info.
Definition unzip.c:416
unzFile unzOpenInternal(voidpf file, zlib_filefunc_def *pzlib_filefunc_def)
Opens a .zip archive using a caller-supplied I/O callback table.
Definition unzip.c:287
int unzGoToNextFile(unzFile file)
Makes the next entry the current entry.
Definition unzip.c:660
int unzGoToFirstFile(unzFile file)
Makes the first entry the current entry.
Definition unzip.c:645
int unzClose(unzFile file)
Closes an archive opened with unzOpen or unzOpenInternal.
Definition unzip.c:400