![]() |
ARX
1.0
The next-generation open source augmented reality toolkit.
|
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include "zlib.h"
#include "unzip.h"
#include "crypt.h"
Classes | |
struct | unz_file_info64_internal_s |
struct | file_in_zip64_read_info_s |
struct | unz64_internal |
Macros | |
#define | DISKHEADERMAGIC (0x08074b50) |
#define | LOCALHEADERMAGIC (0x04034b50) |
#define | CENTRALHEADERMAGIC (0x02014b50) |
#define | ENDHEADERMAGIC (0x06054b50) |
#define | ZIP64ENDHEADERMAGIC (0x06064b50) |
#define | ZIP64ENDLOCHEADERMAGIC (0x07064b50) |
#define | SIZECENTRALDIRITEM (0x2e) |
#define | SIZECENTRALHEADERLOCATOR (0x14) |
#define | SIZEZIPLOCALHEADER (0x1e) |
#define | BUFREADCOMMENT (0x400) |
#define | UNZ_BUFSIZE (UINT16_MAX) |
#define | UNZ_MAXFILENAMEINZIP (256) |
#define | ALLOC(size) (malloc(size)) |
#define | TRYFREE(p) {if (p) free(p);} |
Typedefs | |
typedef struct unz_file_info64_internal_s | unz_file_info64_internal |
Functions | |
unzFile ZEXPORT | unzOpen2 (const char *path, zlib_filefunc_def *pzlib_filefunc32_def) |
unzFile ZEXPORT | unzOpen2_64 (const void *path, zlib_filefunc64_def *pzlib_filefunc_def) |
unzFile ZEXPORT | unzOpen (const char *path) |
unzFile ZEXPORT | unzOpen64 (const void *path) |
int ZEXPORT | unzClose (unzFile file) |
int ZEXPORT | unzGetGlobalInfo (unzFile file, unz_global_info *pglobal_info32) |
int ZEXPORT | unzGetGlobalInfo64 (unzFile file, unz_global_info64 *pglobal_info) |
int ZEXPORT | unzGetGlobalComment (unzFile file, char *comment, uint16_t comment_size) |
int ZEXPORT | unzGetCurrentFileInfo (unzFile file, unz_file_info *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size) |
int ZEXPORT | unzGetCurrentFileInfo64 (unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size) |
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) |
int ZEXPORT | unzReadCurrentFile (unzFile file, voidp buf, uint32_t len) |
int ZEXPORT | unzGetLocalExtrafield (unzFile file, voidp buf, uint32_t len) |
int ZEXPORT | unzCloseCurrentFile (unzFile file) |
int ZEXPORT | unzGoToFirstFile2 (unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size) |
int ZEXPORT | unzGoToFirstFile (unzFile file) |
int ZEXPORT | unzGoToNextFile2 (unzFile file, unz_file_info64 *pfile_info, char *filename, uint16_t filename_size, void *extrafield, uint16_t extrafield_size, char *comment, uint16_t comment_size) |
int ZEXPORT | unzGoToNextFile (unzFile file) |
int ZEXPORT | unzLocateFile (unzFile file, const char *filename, unzFileNameComparer filename_compare_func) |
int ZEXPORT | unzGetFilePos (unzFile file, unz_file_pos *file_pos) |
int ZEXPORT | unzGoToFilePos (unzFile file, unz_file_pos *file_pos) |
int ZEXPORT | unzGetFilePos64 (unzFile file, unz64_file_pos *file_pos) |
int ZEXPORT | unzGoToFilePos64 (unzFile file, const unz64_file_pos *file_pos) |
int32_t ZEXPORT | unzGetOffset (unzFile file) |
int64_t ZEXPORT | unzGetOffset64 (unzFile file) |
int ZEXPORT | unzSetOffset (unzFile file, uint32_t pos) |
int ZEXPORT | unzSetOffset64 (unzFile file, uint64_t pos) |
int32_t ZEXPORT | unzTell (unzFile file) |
int64_t ZEXPORT | unzTell64 (unzFile file) |
int ZEXPORT | unzSeek (unzFile file, uint32_t offset, int origin) |
int ZEXPORT | unzSeek64 (unzFile file, uint64_t offset, int origin) |
int ZEXPORT | unzEndOfFile (unzFile file) |
Variables | |
const char | unz_copyright [] = " unzip 1.2.0 Copyright 1998-2017 - https://github.com/nmoinvaz/minizip" |
#define ALLOC | ( | size | ) | (malloc(size)) |
#define BUFREADCOMMENT (0x400) |
#define CENTRALHEADERMAGIC (0x02014b50) |
#define DISKHEADERMAGIC (0x08074b50) |
#define ENDHEADERMAGIC (0x06054b50) |
#define LOCALHEADERMAGIC (0x04034b50) |
#define SIZECENTRALDIRITEM (0x2e) |
#define SIZECENTRALHEADERLOCATOR (0x14) |
#define SIZEZIPLOCALHEADER (0x1e) |
#define TRYFREE | ( | p | ) | {if (p) free(p);} |
#define UNZ_BUFSIZE (UINT16_MAX) |
#define UNZ_MAXFILENAMEINZIP (256) |
#define ZIP64ENDHEADERMAGIC (0x06064b50) |
#define ZIP64ENDLOCHEADERMAGIC (0x07064b50) |
typedef struct unz_file_info64_internal_s unz_file_info64_internal |
int ZEXPORT unzClose | ( | unzFile | file | ) |
int ZEXPORT unzCloseCurrentFile | ( | unzFile | file | ) |
int ZEXPORT unzEndOfFile | ( | unzFile | file | ) |
int ZEXPORT unzGetCurrentFileInfo | ( | unzFile | file, |
unz_file_info * | pfile_info, | ||
char * | filename, | ||
uint16_t | filename_size, | ||
void * | extrafield, | ||
uint16_t | extrafield_size, | ||
char * | comment, | ||
uint16_t | comment_size | ||
) |
int ZEXPORT unzGetCurrentFileInfo64 | ( | unzFile | file, |
unz_file_info64 * | pfile_info, | ||
char * | filename, | ||
uint16_t | filename_size, | ||
void * | extrafield, | ||
uint16_t | extrafield_size, | ||
char * | comment, | ||
uint16_t | comment_size | ||
) |
int ZEXPORT unzGetFilePos | ( | unzFile | file, |
unz_file_pos * | file_pos | ||
) |
int ZEXPORT unzGetFilePos64 | ( | unzFile | file, |
unz64_file_pos * | file_pos | ||
) |
int ZEXPORT unzGetGlobalComment | ( | unzFile | file, |
char * | comment, | ||
uint16_t | comment_size | ||
) |
int ZEXPORT unzGetGlobalInfo | ( | unzFile | file, |
unz_global_info * | pglobal_info32 | ||
) |
int ZEXPORT unzGetGlobalInfo64 | ( | unzFile | file, |
unz_global_info64 * | pglobal_info | ||
) |
int ZEXPORT unzGetLocalExtrafield | ( | unzFile | file, |
voidp | buf, | ||
uint32_t | len | ||
) |
int32_t ZEXPORT unzGetOffset | ( | unzFile | file | ) |
int64_t ZEXPORT unzGetOffset64 | ( | unzFile | file | ) |
int ZEXPORT unzGoToFilePos | ( | unzFile | file, |
unz_file_pos * | file_pos | ||
) |
int ZEXPORT unzGoToFilePos64 | ( | unzFile | file, |
const unz64_file_pos * | file_pos | ||
) |
int ZEXPORT unzGoToFirstFile | ( | unzFile | file | ) |
int ZEXPORT unzGoToFirstFile2 | ( | unzFile | file, |
unz_file_info64 * | pfile_info, | ||
char * | filename, | ||
uint16_t | filename_size, | ||
void * | extrafield, | ||
uint16_t | extrafield_size, | ||
char * | comment, | ||
uint16_t | comment_size | ||
) |
int ZEXPORT unzGoToNextFile | ( | unzFile | file | ) |
int ZEXPORT unzGoToNextFile2 | ( | unzFile | file, |
unz_file_info64 * | pfile_info, | ||
char * | filename, | ||
uint16_t | filename_size, | ||
void * | extrafield, | ||
uint16_t | extrafield_size, | ||
char * | comment, | ||
uint16_t | comment_size | ||
) |
int ZEXPORT unzLocateFile | ( | unzFile | file, |
const char * | filename, | ||
unzFileNameComparer | filename_compare_func | ||
) |
unzFile ZEXPORT unzOpen | ( | const char * | path | ) |
unzFile ZEXPORT unzOpen2 | ( | const char * | path, |
zlib_filefunc_def * | pzlib_filefunc32_def | ||
) |
unzFile ZEXPORT unzOpen2_64 | ( | const void * | path, |
zlib_filefunc64_def * | pzlib_filefunc_def | ||
) |
unzFile ZEXPORT unzOpen64 | ( | const void * | path | ) |
int ZEXPORT unzOpenCurrentFile | ( | unzFile | file | ) |
int ZEXPORT unzOpenCurrentFile2 | ( | unzFile | file, |
int * | method, | ||
int * | level, | ||
int | raw | ||
) |
int ZEXPORT unzOpenCurrentFile3 | ( | unzFile | file, |
int * | method, | ||
int * | level, | ||
int | raw, | ||
const char * | password | ||
) |
int ZEXPORT unzOpenCurrentFilePassword | ( | unzFile | file, |
const char * | password | ||
) |
int ZEXPORT unzReadCurrentFile | ( | unzFile | file, |
voidp | buf, | ||
uint32_t | len | ||
) |
int ZEXPORT unzSeek | ( | unzFile | file, |
uint32_t | offset, | ||
int | origin | ||
) |
int ZEXPORT unzSeek64 | ( | unzFile | file, |
uint64_t | offset, | ||
int | origin | ||
) |
int ZEXPORT unzSetOffset | ( | unzFile | file, |
uint32_t | pos | ||
) |
int ZEXPORT unzSetOffset64 | ( | unzFile | file, |
uint64_t | pos | ||
) |
int32_t ZEXPORT unzTell | ( | unzFile | file | ) |
int64_t ZEXPORT unzTell64 | ( | unzFile | file | ) |
const char unz_copyright[] = " unzip 1.2.0 Copyright 1998-2017 - https://github.com/nmoinvaz/minizip" |