ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"
#include <errno.h>
#include "crypt.h"
Go to the source code of this file.
Data Structures | |
struct | unz_file_info64_internal_s |
struct | file_in_zip64_read_info_s |
struct | unz64_s |
Macros | |
#define | local static |
#define | CASESENSITIVITYDEFAULT_NO |
#define | UNZ_BUFSIZE (16384) |
#define | UNZ_MAXFILENAMEINZIP (256) |
#define | ALLOC(size) (malloc(size)) |
#define | TRYFREE(p) {if (p) free(p);} |
#define | SIZECENTRALDIRITEM (0x2e) |
#define | SIZEZIPLOCALHEADER (0x1e) |
#define | CASESENSITIVITYDEFAULTVALUE 2 |
#define | STRCMPCASENOSENTIVEFUNCTION strcmpcasenosensitive_internal |
#define | BUFREADCOMMENT (0x400) |
Typedefs | |
typedef uLongf | z_crc_t |
typedef struct unz_file_info64_internal_s | unz_file_info64_internal |
Functions | |
static int unz64local_getByte | _Z_OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi)) |
static int | unz64local_getByte (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi) |
static int unz64local_getShort | _Z_OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX)) |
static int | unz64local_getShort (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) |
static int | unz64local_getLong (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) |
static int unz64local_getLong64 | _Z_OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX)) |
static int | unz64local_getLong64 (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX) |
static int | strcmpcasenosensitive_internal (const char *fileName1, const char *fileName2) |
int ZEXPORT | unzStringFileNameCompare (const char *fileName1, const char *fileName2, int iCaseSensitivity) |
static ZPOS64_T unz64local_SearchCentralDir | _Z_OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream)) |
static ZPOS64_T | unz64local_SearchCentralDir (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) |
static ZPOS64_T | unz64local_SearchCentralDir64 (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) |
unzFile | unzOpenInternal (voidpf file, zlib_filefunc64_32_def *pzlib_filefunc64_32_def, int is64bitOpenFunction, unsigned flags) |
unzFile ZEXPORT | unzOpen2 (voidpf file, zlib_filefunc_def *pzlib_filefunc32_def) |
unzFile ZEXPORT | unzOpen2_64 (voidpf file, zlib_filefunc64_def *pzlib_filefunc_def) |
unzFile ZEXPORT | unzOpen (voidpf file) |
unzFile ZEXPORT | unzOpen64 (voidpf file) |
int ZEXPORT | unzClose (unzFile file) |
int ZEXPORT | unzGetGlobalInfo64 (unzFile file, unz_global_info64 *pglobal_info) |
int ZEXPORT | unzGetGlobalInfo (unzFile file, unz_global_info *pglobal_info32) |
static void | unz64local_DosDateToTmuDate (ZPOS64_T ulDosDate, tm_unz *ptm) |
static int unz64local_GetCurrentFileInfoInternal | _Z_OF ((unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)) |
static int | unz64local_GetCurrentFileInfoInternal (unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) |
int ZEXPORT | unzGetCurrentFileInfo64 (unzFile file, unz_file_info64 *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) |
int ZEXPORT | unzGetCurrentFileInfo (unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) |
int ZEXPORT | unzGoToFirstFile (unzFile file) |
int ZEXPORT | unzGoToNextFile (unzFile file) |
int ZEXPORT | unzLocateFile (unzFile file, const char *szFileName, int iCaseSensitivity) |
int ZEXPORT | unzGetFilePos64 (unzFile file, unz64_file_pos *file_pos) |
int ZEXPORT | unzGetFilePos (unzFile file, unz_file_pos *file_pos) |
int ZEXPORT | unzGoToFilePos64 (unzFile file, const unz64_file_pos *file_pos) |
int ZEXPORT | unzGoToFilePos (unzFile file, unz_file_pos *file_pos) |
static int | unz64local_CheckCurrentFileCoherencyHeader (unz64_s *s, uInt *piSizeVar, ZPOS64_T *poffset_local_extrafield, uInt *psize_local_extrafield) |
int ZEXPORT | unzOpenCurrentFile3 (unzFile file, int *method, int *level, int raw, const char *password) |
int ZEXPORT | unzOpenCurrentFile (unzFile file) |
int ZEXPORT | unzOpenCurrentFilePassword (unzFile file, const char *password) |
int ZEXPORT | unzOpenCurrentFile2 (unzFile file, int *method, int *level, int raw) |
ZPOS64_T ZEXPORT | unzGetCurrentFileZStreamPos64 (unzFile file) |
Addition for GDAL : START. More... | |
int ZEXPORT | unzReadCurrentFile (unzFile file, voidp buf, unsigned len) |
Addition for GDAL : END. More... | |
z_off_t ZEXPORT | unztell (unzFile file) |
ZPOS64_T ZEXPORT | unztell64 (unzFile file) |
int ZEXPORT | unzeof (unzFile file) |
int ZEXPORT | unzGetLocalExtrafield (unzFile file, voidp buf, unsigned len) |
int ZEXPORT | unzCloseCurrentFile (unzFile file) |
int ZEXPORT | unzGetGlobalComment (unzFile file, char *szComment, uLong uSizeBuf) |
ZPOS64_T ZEXPORT | unzGetOffset64 (unzFile file) |
uLong ZEXPORT | unzGetOffset (unzFile file) |
int ZEXPORT | unzSetOffset64 (unzFile file, ZPOS64_T pos) |
int ZEXPORT | unzSetOffset (unzFile file, uLong pos) |
int ZEXPORT | unzSetFlags (unzFile file, unsigned flags) |
int ZEXPORT | unzClearFlags (unzFile file, unsigned flags) |
Variables | |
const char | unz_copyright [] |
struct unz_file_info64_internal_s |
struct file_in_zip64_read_info_s |
Data Fields | ||
---|---|---|
ZPOS64_T | byte_before_the_zipfile | |
uLong | compression_method | |
uLong | crc32 | |
uLong | crc32_wait | |
voidpf | filestream | |
ZPOS64_T | offset_local_extrafield | |
ZPOS64_T | pos_in_zipfile | |
ZPOS64_T | pos_local_extrafield | |
int | raw | |
char * | read_buffer | |
ZPOS64_T | rest_read_compressed | |
ZPOS64_T | rest_read_uncompressed | |
uInt | size_local_extrafield | |
z_stream | stream | |
uLong | stream_initialised | |
ZPOS64_T | total_out_64 | |
zlib_filefunc64_32_def | z_filefunc |
struct unz64_s |
Data Fields | ||
---|---|---|
ZPOS64_T | byte_before_the_zipfile | |
ZPOS64_T | central_pos | |
unz_file_info64 | cur_file_info | |
unz_file_info64_internal | cur_file_info_internal | |
ZPOS64_T | current_file_ok | |
int | encrypted | |
voidpf | filestream | |
unsigned | flags | |
unz_global_info64 | gi | |
int | is64bitOpenFunction | |
int | isZip64 | |
unsigned long | keys[3] | |
ZPOS64_T | num_file | |
ZPOS64_T | offset_central_dir | |
const z_crc_t FAR * | pcrc_32_tab | |
file_in_zip64_read_info_s * | pfile_in_zip_read | |
ZPOS64_T | pos_in_central_dir | |
ZPOS64_T | size_central_dir | |
zlib_filefunc64_32_def | z_filefunc |
#define ALLOC | ( | size | ) | (malloc(size)) |
Definition at line 114 of file unzip.c.
Referenced by unz64local_SearchCentralDir(), unz64local_SearchCentralDir64(), unzOpenCurrentFile3(), and unzOpenInternal().
#define BUFREADCOMMENT (0x400) |
Definition at line 408 of file unzip.c.
Referenced by unz64local_SearchCentralDir(), and unz64local_SearchCentralDir64().
#define CASESENSITIVITYDEFAULTVALUE 2 |
Definition at line 375 of file unzip.c.
Referenced by unzStringFileNameCompare().
#define SIZECENTRALDIRITEM (0x2e) |
Definition at line 120 of file unzip.c.
Referenced by unzGoToNextFile().
#define SIZEZIPLOCALHEADER (0x1e) |
Definition at line 121 of file unzip.c.
Referenced by unz64local_CheckCurrentFileCoherencyHeader(), and unzOpenCurrentFile3().
#define STRCMPCASENOSENTIVEFUNCTION strcmpcasenosensitive_internal |
Definition at line 381 of file unzip.c.
Referenced by unzStringFileNameCompare().
#define TRYFREE | ( | p | ) | {if (p) free(p);} |
Definition at line 117 of file unzip.c.
Referenced by unz64local_SearchCentralDir(), unz64local_SearchCentralDir64(), unzClose(), unzCloseCurrentFile(), and unzOpenCurrentFile3().
#define UNZ_BUFSIZE (16384) |
Definition at line 106 of file unzip.c.
Referenced by unzOpenCurrentFile3(), and unzReadCurrentFile().
#define UNZ_MAXFILENAMEINZIP (256) |
Definition at line 110 of file unzip.c.
Referenced by unzLocateFile().
typedef struct unz_file_info64_internal_s unz_file_info64_internal |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 1393 of file unzip.c.
References unz64_s::byte_before_the_zipfile, unz_file_info64_s::compressed_size, unz_file_info64_s::compression_method, unz_file_info64_s::crc, unz64_s::cur_file_info, unz64_s::cur_file_info_internal, unz64_s::filestream, unz_file_info64_internal_s::offset_curfile, unz_file_info64_s::size_filename, SIZEZIPLOCALHEADER, unz_file_info64_s::uncompressed_size, unz64local_getLong(), unz64local_getShort(), UNZ_BADZIPFILE, UNZ_ERRNO, UNZ_OK, Z_BZIP2ED, unz64_s::z_filefunc, ZLIB_FILEFUNC_SEEK_SET, and ZSEEK64.
Referenced by unzOpenCurrentFile3().
Definition at line 862 of file unzip.c.
References tm_unz_s::tm_hour, tm_unz_s::tm_mday, tm_unz_s::tm_min, tm_unz_s::tm_mon, tm_unz_s::tm_sec, and tm_unz_s::tm_year.
Referenced by unz64local_GetCurrentFileInfoInternal().
|
static |
Definition at line 215 of file unzip.c.
References UNZ_EOF, UNZ_ERRNO, UNZ_OK, ZERROR64, and ZREAD64.
Referenced by unz64local_getLong(), unz64local_getLong64(), and unz64local_getShort().
|
static |
Definition at line 889 of file unzip.c.
References unz64_s::byte_before_the_zipfile, unz_file_info64_s::compressed_size, unz_file_info64_s::compression_method, unz_file_info64_s::crc, unz_file_info64_s::disk_num_start, unz_file_info64_s::dosDate, unz_file_info64_s::external_fa, unz64_s::filestream, unz_file_info64_s::flag, unz_file_info64_s::internal_fa, unz_file_info64_internal_s::offset_curfile, unz64_s::pos_in_central_dir, unz_file_info64_s::size_file_comment, unz_file_info64_s::size_file_extra, unz_file_info64_s::size_filename, unz_file_info64_s::tmu_date, unz_file_info64_s::uncompressed_size, unz64local_DosDateToTmuDate(), unz64local_getLong(), unz64local_getLong64(), unz64local_getShort(), UNZ_BADZIPFILE, UNZ_ERRNO, UNZ_OK, UNZ_PARAMERROR, unz_file_info64_s::version, unz_file_info64_s::version_needed, unz64_s::z_filefunc, ZLIB_FILEFUNC_SEEK_CUR, ZLIB_FILEFUNC_SEEK_SET, ZREAD64, and ZSEEK64.
Referenced by unzGetCurrentFileInfo(), unzGetCurrentFileInfo64(), unzGoToFilePos64(), unzGoToFirstFile(), unzGoToNextFile(), and unzSetOffset64().
|
static |
Definition at line 269 of file unzip.c.
References unz64local_getByte(), UNZ_OK, and x.
Referenced by unz64local_CheckCurrentFileCoherencyHeader(), unz64local_GetCurrentFileInfoInternal(), unz64local_SearchCentralDir64(), and unzOpenInternal().
|
static |
Definition at line 305 of file unzip.c.
References unz64local_getByte(), UNZ_OK, and x.
Referenced by unz64local_GetCurrentFileInfoInternal(), unz64local_SearchCentralDir64(), and unzOpenInternal().
|
static |
Definition at line 242 of file unzip.c.
References unz64local_getByte(), UNZ_OK, and x.
Referenced by unz64local_CheckCurrentFileCoherencyHeader(), unz64local_GetCurrentFileInfoInternal(), and unzOpenInternal().
|
static |
Definition at line 416 of file unzip.c.
References ALLOC, BUFREADCOMMENT, TRYFREE, ZLIB_FILEFUNC_SEEK_END, ZLIB_FILEFUNC_SEEK_SET, ZREAD64, ZSEEK64, and ZTELL64.
Referenced by unzOpenInternal().
|
static |
Definition at line 481 of file unzip.c.
References ALLOC, BUFREADCOMMENT, TRYFREE, unz64local_getLong(), unz64local_getLong64(), UNZ_OK, ZLIB_FILEFUNC_SEEK_END, ZLIB_FILEFUNC_SEEK_SET, ZREAD64, ZSEEK64, and ZTELL64.
Referenced by unzOpenInternal().
int ZEXPORT unzClearFlags | ( | unzFile | file, |
unsigned | flags | ||
) |
Definition at line 2147 of file unzip.c.
References unz64_s::flags, UNZ_OK, and UNZ_PARAMERROR.
Referenced by QuaZip::open().
int ZEXPORT unzClose | ( | unzFile | file | ) |
Definition at line 815 of file unzip.c.
References unz64_s::filestream, unz64_s::flags, unz64_s::pfile_in_zip_read, TRYFREE, UNZ_AUTO_CLOSE, UNZ_OK, UNZ_PARAMERROR, unzCloseCurrentFile(), unz64_s::z_filefunc, ZCLOSE64, and ZFAKECLOSE64.
Referenced by QuaZip::close(), and QuaZip::open().
int ZEXPORT unzCloseCurrentFile | ( | unzFile | file | ) |
Definition at line 2012 of file unzip.c.
References file_in_zip64_read_info_s::crc32, file_in_zip64_read_info_s::crc32_wait, unz64_s::pfile_in_zip_read, file_in_zip64_read_info_s::raw, file_in_zip64_read_info_s::read_buffer, file_in_zip64_read_info_s::rest_read_uncompressed, file_in_zip64_read_info_s::stream, file_in_zip64_read_info_s::stream_initialised, TRYFREE, UNZ_CRCERROR, UNZ_OK, UNZ_PARAMERROR, and Z_BZIP2ED.
Referenced by QuaZipFile::close(), unzClose(), and unzOpenCurrentFile3().
int ZEXPORT unzeof | ( | unzFile | file | ) |
Definition at line 1932 of file unzip.c.
References unz64_s::pfile_in_zip_read, file_in_zip64_read_info_s::rest_read_uncompressed, and UNZ_PARAMERROR.
Referenced by QuaZipFile::atEnd().
int ZEXPORT unzGetCurrentFileInfo | ( | unzFile | file, |
unz_file_info * | pfile_info, | ||
char * | szFileName, | ||
uLong | fileNameBufferSize, | ||
void * | extraField, | ||
uLong | extraFieldBufferSize, | ||
char * | szComment, | ||
uLong | commentBufferSize | ||
) |
Definition at line 1146 of file unzip.c.
References unz_file_info64_s::compressed_size, unz_file_info_s::compressed_size, unz_file_info64_s::compression_method, unz_file_info_s::compression_method, unz_file_info64_s::crc, unz_file_info_s::crc, unz_file_info64_s::disk_num_start, unz_file_info_s::disk_num_start, unz_file_info64_s::dosDate, unz_file_info_s::dosDate, unz_file_info64_s::external_fa, unz_file_info_s::external_fa, unz_file_info64_s::flag, unz_file_info_s::flag, unz_file_info64_s::internal_fa, unz_file_info_s::internal_fa, unz_file_info64_s::size_file_comment, unz_file_info_s::size_file_comment, unz_file_info64_s::size_file_extra, unz_file_info_s::size_file_extra, unz_file_info64_s::size_filename, unz_file_info_s::size_filename, unz_file_info64_s::tmu_date, unz_file_info_s::tmu_date, unz_file_info64_s::uncompressed_size, unz_file_info_s::uncompressed_size, unz64local_GetCurrentFileInfoInternal(), UNZ_OK, unz_file_info64_s::version, unz_file_info_s::version, unz_file_info64_s::version_needed, and unz_file_info_s::version_needed.
int ZEXPORT unzGetCurrentFileInfo64 | ( | unzFile | file, |
unz_file_info64 * | pfile_info, | ||
char * | szFileName, | ||
uLong | fileNameBufferSize, | ||
void * | extraField, | ||
uLong | extraFieldBufferSize, | ||
char * | szComment, | ||
uLong | commentBufferSize | ||
) |
Definition at line 1134 of file unzip.c.
References unz64local_GetCurrentFileInfoInternal().
Referenced by QuaZipFile::csize(), QuaZip::getCurrentFileInfo(), QuaZip::getCurrentFileName(), unzLocateFile(), and QuaZipFile::usize().
Definition at line 1666 of file unzip.c.
References file_in_zip64_read_info_s::byte_before_the_zipfile, unz64_s::pfile_in_zip_read, and file_in_zip64_read_info_s::pos_in_zipfile.
int ZEXPORT unzGetFilePos | ( | unzFile | file, |
unz_file_pos * | file_pos | ||
) |
Definition at line 1334 of file unzip.c.
References unz_file_pos_s::num_of_file, unz64_file_pos_s::num_of_file, unz_file_pos_s::pos_in_zip_directory, unz64_file_pos_s::pos_in_zip_directory, UNZ_OK, and unzGetFilePos64().
int ZEXPORT unzGetFilePos64 | ( | unzFile | file, |
unz64_file_pos * | file_pos | ||
) |
Definition at line 1318 of file unzip.c.
References unz64_s::current_file_ok, unz64_s::num_file, unz64_file_pos_s::num_of_file, unz64_s::pos_in_central_dir, unz64_file_pos_s::pos_in_zip_directory, UNZ_END_OF_LIST_OF_FILE, UNZ_OK, and UNZ_PARAMERROR.
Referenced by QuaZipPrivate::addCurrentFileToDirectoryMap(), and unzGetFilePos().
int ZEXPORT unzGetGlobalComment | ( | unzFile | file, |
char * | szComment, | ||
uLong | uSizeBuf | ||
) |
Definition at line 2059 of file unzip.c.
References unz64_s::central_pos, unz64_s::filestream, unz64_s::gi, unz_global_info64_s::size_comment, UNZ_ERRNO, UNZ_PARAMERROR, unz64_s::z_filefunc, ZLIB_FILEFUNC_SEEK_SET, ZREAD64, and ZSEEK64.
Referenced by QuaZip::getComment().
int ZEXPORT unzGetGlobalInfo | ( | unzFile | file, |
unz_global_info * | pglobal_info32 | ||
) |
Definition at line 848 of file unzip.c.
References unz64_s::gi, unz_global_info64_s::number_entry, unz_global_info_s::number_entry, unz_global_info64_s::size_comment, unz_global_info_s::size_comment, UNZ_OK, and UNZ_PARAMERROR.
int ZEXPORT unzGetGlobalInfo64 | ( | unzFile | file, |
unz_global_info64 * | pglobal_info | ||
) |
Definition at line 838 of file unzip.c.
References unz64_s::gi, UNZ_OK, and UNZ_PARAMERROR.
Referenced by QuaZip::getComment(), and QuaZip::getEntriesCount().
int ZEXPORT unzGetLocalExtrafield | ( | unzFile | file, |
voidp | buf, | ||
unsigned | len | ||
) |
Definition at line 1964 of file unzip.c.
References file_in_zip64_read_info_s::filestream, file_in_zip64_read_info_s::offset_local_extrafield, unz64_s::pfile_in_zip_read, file_in_zip64_read_info_s::pos_local_extrafield, file_in_zip64_read_info_s::size_local_extrafield, UNZ_ERRNO, UNZ_PARAMERROR, file_in_zip64_read_info_s::z_filefunc, ZLIB_FILEFUNC_SEEK_SET, ZREAD64, and ZSEEK64.
uLong ZEXPORT unzGetOffset | ( | unzFile | file | ) |
Definition at line 2102 of file unzip.c.
References unzGetOffset64().
Definition at line 2087 of file unzip.c.
References unz64_s::current_file_ok, unz64_s::gi, unz64_s::num_file, unz_global_info64_s::number_entry, and unz64_s::pos_in_central_dir.
Referenced by unzGetOffset().
int ZEXPORT unzGoToFilePos | ( | unzFile | file, |
unz_file_pos * | file_pos | ||
) |
Definition at line 1370 of file unzip.c.
References unz_file_pos_s::num_of_file, unz64_file_pos_s::num_of_file, unz_file_pos_s::pos_in_zip_directory, unz64_file_pos_s::pos_in_zip_directory, UNZ_PARAMERROR, and unzGoToFilePos64().
int ZEXPORT unzGoToFilePos64 | ( | unzFile | file, |
const unz64_file_pos * | file_pos | ||
) |
Definition at line 1348 of file unzip.c.
References unz64_s::cur_file_info, unz64_s::cur_file_info_internal, unz64_s::current_file_ok, unz64_s::num_file, unz64_file_pos_s::num_of_file, unz64_s::pos_in_central_dir, unz64_file_pos_s::pos_in_zip_directory, unz64local_GetCurrentFileInfoInternal(), UNZ_OK, and UNZ_PARAMERROR.
Referenced by QuaZipPrivate::goToFirstUnmappedFile(), QuaZip::setCurrentFile(), and unzGoToFilePos().
int ZEXPORT unzGoToFirstFile | ( | unzFile | file | ) |
Definition at line 1188 of file unzip.c.
References unz64_s::cur_file_info, unz64_s::cur_file_info_internal, unz64_s::current_file_ok, unz64_s::num_file, unz64_s::offset_central_dir, unz64_s::pos_in_central_dir, unz64local_GetCurrentFileInfoInternal(), UNZ_OK, and UNZ_PARAMERROR.
Referenced by QuaZip::goToFirstFile(), QuaZipPrivate::goToFirstUnmappedFile(), unzLocateFile(), and unzOpenInternal().
int ZEXPORT unzGoToNextFile | ( | unzFile | file | ) |
Definition at line 1209 of file unzip.c.
References unz64_s::cur_file_info, unz64_s::cur_file_info_internal, unz64_s::current_file_ok, unz64_s::gi, unz64_s::num_file, unz_global_info64_s::number_entry, unz64_s::pos_in_central_dir, unz_file_info64_s::size_file_comment, unz_file_info64_s::size_file_extra, unz_file_info64_s::size_filename, SIZECENTRALDIRITEM, unz64local_GetCurrentFileInfoInternal(), UNZ_END_OF_LIST_OF_FILE, UNZ_OK, and UNZ_PARAMERROR.
Referenced by QuaZipPrivate::goToFirstUnmappedFile(), QuaZip::goToNextFile(), and unzLocateFile().
int ZEXPORT unzLocateFile | ( | unzFile | file, |
const char * | szFileName, | ||
int | iCaseSensitivity | ||
) |
Definition at line 1242 of file unzip.c.
References unz64_s::cur_file_info, unz64_s::cur_file_info_internal, unz64_s::current_file_ok, unz64_s::num_file, unz64_s::pos_in_central_dir, UNZ_END_OF_LIST_OF_FILE, UNZ_MAXFILENAMEINZIP, UNZ_OK, UNZ_PARAMERROR, unzGetCurrentFileInfo64(), unzGoToFirstFile(), unzGoToNextFile(), and unzStringFileNameCompare().
unzFile ZEXPORT unzOpen | ( | voidpf | file | ) |
Definition at line 800 of file unzip.c.
References UNZ_DEFAULT_FLAGS, and unzOpenInternal().
unzFile ZEXPORT unzOpen2 | ( | voidpf | file, |
zlib_filefunc_def * | pzlib_filefunc32_def | ||
) |
Definition at line 772 of file unzip.c.
References fill_zlib_filefunc64_32_def_from_filefunc32(), UNZ_DEFAULT_FLAGS, and unzOpenInternal().
Referenced by QuaZip::open().
unzFile ZEXPORT unzOpen2_64 | ( | voidpf | file, |
zlib_filefunc64_def * | pzlib_filefunc_def | ||
) |
Definition at line 785 of file unzip.c.
References UNZ_DEFAULT_FLAGS, unzOpenInternal(), zlib_filefunc64_32_def_s::zfile_func64, zlib_filefunc64_32_def_s::zseek32_file, and zlib_filefunc64_32_def_s::ztell32_file.
unzFile ZEXPORT unzOpen64 | ( | voidpf | file | ) |
Definition at line 805 of file unzip.c.
References UNZ_DEFAULT_FLAGS, and unzOpenInternal().
int ZEXPORT unzOpenCurrentFile | ( | unzFile | file | ) |
Definition at line 1649 of file unzip.c.
References unzOpenCurrentFile3().
int ZEXPORT unzOpenCurrentFile2 | ( | unzFile | file, |
int * | method, | ||
int * | level, | ||
int | raw | ||
) |
Definition at line 1659 of file unzip.c.
References unzOpenCurrentFile3().
int ZEXPORT unzOpenCurrentFile3 | ( | unzFile | file, |
int * | method, | ||
int * | level, | ||
int | raw, | ||
const char * | password | ||
) |
Definition at line 1480 of file unzip.c.
References ALLOC, file_in_zip64_read_info_s::byte_before_the_zipfile, unz64_s::byte_before_the_zipfile, unz_file_info64_s::compressed_size, unz_file_info64_s::compression_method, file_in_zip64_read_info_s::compression_method, unz_file_info64_s::crc, file_in_zip64_read_info_s::crc32, file_in_zip64_read_info_s::crc32_wait, unz64_s::cur_file_info, unz64_s::cur_file_info_internal, unz64_s::current_file_ok, unz64_s::encrypted, file_in_zip64_read_info_s::filestream, unz64_s::filestream, unz_file_info64_s::flag, init_keys(), unz64_s::keys, unz_file_info64_internal_s::offset_curfile, file_in_zip64_read_info_s::offset_local_extrafield, unz64_s::pcrc_32_tab, unz64_s::pfile_in_zip_read, file_in_zip64_read_info_s::pos_in_zipfile, file_in_zip64_read_info_s::pos_local_extrafield, file_in_zip64_read_info_s::raw, file_in_zip64_read_info_s::read_buffer, file_in_zip64_read_info_s::rest_read_compressed, file_in_zip64_read_info_s::rest_read_uncompressed, SEEK_SET, file_in_zip64_read_info_s::size_local_extrafield, SIZEZIPLOCALHEADER, file_in_zip64_read_info_s::stream, file_in_zip64_read_info_s::stream_initialised, file_in_zip64_read_info_s::total_out_64, TRYFREE, unz_file_info64_s::uncompressed_size, unz64local_CheckCurrentFileCoherencyHeader(), UNZ_BADZIPFILE, UNZ_BUFSIZE, UNZ_INTERNALERROR, UNZ_OK, UNZ_PARAMERROR, unzCloseCurrentFile(), Z_BZIP2ED, file_in_zip64_read_info_s::z_filefunc, unz64_s::z_filefunc, zdecode, ZREAD64, and ZSEEK64.
Referenced by QuaZipFile::open(), unzOpenCurrentFile(), unzOpenCurrentFile2(), and unzOpenCurrentFilePassword().
int ZEXPORT unzOpenCurrentFilePassword | ( | unzFile | file, |
const char * | password | ||
) |
Definition at line 1654 of file unzip.c.
References unzOpenCurrentFile3().
unzFile unzOpenInternal | ( | voidpf | file, |
zlib_filefunc64_32_def * | pzlib_filefunc64_32_def, | ||
int | is64bitOpenFunction, | ||
unsigned | flags | ||
) |
Definition at line 587 of file unzip.c.
References ALLOC, unz64_s::byte_before_the_zipfile, unz64_s::central_pos, unz64_s::encrypted, unz64_s::filestream, fill_qiodevice64_filefunc(), unz64_s::flags, unz64_s::gi, unz64_s::is64bitOpenFunction, unz64_s::isZip64, unz_global_info64_s::number_entry, unz64_s::offset_central_dir, unz64_s::pfile_in_zip_read, unz64_s::size_central_dir, unz_global_info64_s::size_comment, unz64local_getLong(), unz64local_getLong64(), unz64local_getShort(), unz64local_SearchCentralDir(), unz64local_SearchCentralDir64(), UNZ_AUTO_CLOSE, UNZ_BADZIPFILE, unz_copyright, UNZ_ERRNO, UNZ_OK, unzGoToFirstFile(), unz64_s::z_filefunc, ZCLOSE64, ZFAKECLOSE64, zlib_filefunc64_32_def_s::zfile_func64, ZLIB_FILEFUNC_MODE_EXISTING, ZLIB_FILEFUNC_MODE_READ, ZLIB_FILEFUNC_SEEK_SET, ZOPEN64, zlib_filefunc64_32_def_s::zseek32_file, ZSEEK64, and zlib_filefunc64_32_def_s::ztell32_file.
Referenced by QuaZip::open(), unzOpen(), unzOpen2(), unzOpen2_64(), and unzOpen64().
int ZEXPORT unzReadCurrentFile | ( | unzFile | file, |
voidp | buf, | ||
unsigned | len | ||
) |
Definition at line 1692 of file unzip.c.
References file_in_zip64_read_info_s::byte_before_the_zipfile, file_in_zip64_read_info_s::compression_method, file_in_zip64_read_info_s::crc32, unz64_s::encrypted, file_in_zip64_read_info_s::filestream, unz64_s::keys, unz64_s::pcrc_32_tab, unz64_s::pfile_in_zip_read, file_in_zip64_read_info_s::pos_in_zipfile, file_in_zip64_read_info_s::raw, file_in_zip64_read_info_s::read_buffer, file_in_zip64_read_info_s::rest_read_compressed, file_in_zip64_read_info_s::rest_read_uncompressed, file_in_zip64_read_info_s::stream, file_in_zip64_read_info_s::total_out_64, UNZ_BUFSIZE, UNZ_END_OF_LIST_OF_FILE, UNZ_EOF, UNZ_ERRNO, UNZ_OK, UNZ_PARAMERROR, Z_BZIP2ED, file_in_zip64_read_info_s::z_filefunc, zdecode, ZLIB_FILEFUNC_SEEK_SET, ZREAD64, and ZSEEK64.
Referenced by QuaZipFile::readData().
int ZEXPORT unzSetFlags | ( | unzFile | file, |
unsigned | flags | ||
) |
Definition at line 2136 of file unzip.c.
References unz64_s::flags, UNZ_OK, and UNZ_PARAMERROR.
Referenced by QuaZip::open().
int ZEXPORT unzSetOffset | ( | unzFile | file, |
uLong | pos | ||
) |
Definition at line 2130 of file unzip.c.
References unzSetOffset64().
Definition at line 2112 of file unzip.c.
References unz64_s::cur_file_info, unz64_s::cur_file_info_internal, unz64_s::current_file_ok, unz64_s::gi, unz64_s::num_file, unz_global_info64_s::number_entry, unz64_s::pos_in_central_dir, unz64local_GetCurrentFileInfoInternal(), UNZ_OK, and UNZ_PARAMERROR.
Referenced by unzSetOffset().
int ZEXPORT unzStringFileNameCompare | ( | const char * | fileName1, |
const char * | fileName2, | ||
int | iCaseSensitivity | ||
) |
Definition at line 393 of file unzip.c.
References CASESENSITIVITYDEFAULTVALUE, and STRCMPCASENOSENTIVEFUNCTION.
Referenced by unzLocateFile().
z_off_t ZEXPORT unztell | ( | unzFile | file | ) |
Definition at line 1897 of file unzip.c.
References unz64_s::pfile_in_zip_read, file_in_zip64_read_info_s::stream, and UNZ_PARAMERROR.
Referenced by QuaZipFile::pos().
Definition at line 1912 of file unzip.c.
References unz64_s::pfile_in_zip_read, and file_in_zip64_read_info_s::total_out_64.
const char unz_copyright[] |
Definition at line 124 of file unzip.c.
Referenced by unzOpenInternal().