ARX  1.0
The next-generation open source augmented reality toolkit.
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
unzip.c File Reference
#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"
Include dependency graph for unzip.c:

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"
 

Macro Definition Documentation

◆ ALLOC

#define ALLOC (   size)    (malloc(size))

◆ BUFREADCOMMENT

#define BUFREADCOMMENT   (0x400)

◆ CENTRALHEADERMAGIC

#define CENTRALHEADERMAGIC   (0x02014b50)

◆ DISKHEADERMAGIC

#define DISKHEADERMAGIC   (0x08074b50)

◆ ENDHEADERMAGIC

#define ENDHEADERMAGIC   (0x06054b50)

◆ LOCALHEADERMAGIC

#define LOCALHEADERMAGIC   (0x04034b50)

◆ SIZECENTRALDIRITEM

#define SIZECENTRALDIRITEM   (0x2e)

◆ SIZECENTRALHEADERLOCATOR

#define SIZECENTRALHEADERLOCATOR   (0x14)

◆ SIZEZIPLOCALHEADER

#define SIZEZIPLOCALHEADER   (0x1e)

◆ TRYFREE

#define TRYFREE (   p)    {if (p) free(p);}

◆ UNZ_BUFSIZE

#define UNZ_BUFSIZE   (UINT16_MAX)

◆ UNZ_MAXFILENAMEINZIP

#define UNZ_MAXFILENAMEINZIP   (256)

◆ ZIP64ENDHEADERMAGIC

#define ZIP64ENDHEADERMAGIC   (0x06064b50)

◆ ZIP64ENDLOCHEADERMAGIC

#define ZIP64ENDLOCHEADERMAGIC   (0x07064b50)

Typedef Documentation

◆ unz_file_info64_internal

Function Documentation

◆ unzClose()

int ZEXPORT unzClose ( unzFile  file)
Here is the call graph for this function:

◆ unzCloseCurrentFile()

int ZEXPORT unzCloseCurrentFile ( unzFile  file)

◆ unzEndOfFile()

int ZEXPORT unzEndOfFile ( unzFile  file)

◆ unzGetCurrentFileInfo()

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 
)

◆ unzGetCurrentFileInfo64()

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 
)

◆ unzGetFilePos()

int ZEXPORT unzGetFilePos ( unzFile  file,
unz_file_pos file_pos 
)
Here is the call graph for this function:

◆ unzGetFilePos64()

int ZEXPORT unzGetFilePos64 ( unzFile  file,
unz64_file_pos file_pos 
)

◆ unzGetGlobalComment()

int ZEXPORT unzGetGlobalComment ( unzFile  file,
char *  comment,
uint16_t  comment_size 
)

◆ unzGetGlobalInfo()

int ZEXPORT unzGetGlobalInfo ( unzFile  file,
unz_global_info pglobal_info32 
)

◆ unzGetGlobalInfo64()

int ZEXPORT unzGetGlobalInfo64 ( unzFile  file,
unz_global_info64 pglobal_info 
)

◆ unzGetLocalExtrafield()

int ZEXPORT unzGetLocalExtrafield ( unzFile  file,
voidp  buf,
uint32_t  len 
)

◆ unzGetOffset()

int32_t ZEXPORT unzGetOffset ( unzFile  file)
Here is the call graph for this function:

◆ unzGetOffset64()

int64_t ZEXPORT unzGetOffset64 ( unzFile  file)

◆ unzGoToFilePos()

int ZEXPORT unzGoToFilePos ( unzFile  file,
unz_file_pos file_pos 
)
Here is the call graph for this function:

◆ unzGoToFilePos64()

int ZEXPORT unzGoToFilePos64 ( unzFile  file,
const unz64_file_pos file_pos 
)

◆ unzGoToFirstFile()

int ZEXPORT unzGoToFirstFile ( unzFile  file)
Here is the call graph for this function:

◆ unzGoToFirstFile2()

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 
)

◆ unzGoToNextFile()

int ZEXPORT unzGoToNextFile ( unzFile  file)
Here is the call graph for this function:

◆ unzGoToNextFile2()

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 
)

◆ unzLocateFile()

int ZEXPORT unzLocateFile ( unzFile  file,
const char *  filename,
unzFileNameComparer  filename_compare_func 
)
Here is the call graph for this function:

◆ unzOpen()

unzFile ZEXPORT unzOpen ( const char *  path)

◆ unzOpen2()

unzFile ZEXPORT unzOpen2 ( const char *  path,
zlib_filefunc_def pzlib_filefunc32_def 
)
Here is the call graph for this function:

◆ unzOpen2_64()

unzFile ZEXPORT unzOpen2_64 ( const void *  path,
zlib_filefunc64_def pzlib_filefunc_def 
)

◆ unzOpen64()

unzFile ZEXPORT unzOpen64 ( const void *  path)

◆ unzOpenCurrentFile()

int ZEXPORT unzOpenCurrentFile ( unzFile  file)
Here is the call graph for this function:

◆ unzOpenCurrentFile2()

int ZEXPORT unzOpenCurrentFile2 ( unzFile  file,
int *  method,
int *  level,
int  raw 
)
Here is the call graph for this function:

◆ unzOpenCurrentFile3()

int ZEXPORT unzOpenCurrentFile3 ( unzFile  file,
int *  method,
int *  level,
int  raw,
const char *  password 
)
Here is the call graph for this function:

◆ unzOpenCurrentFilePassword()

int ZEXPORT unzOpenCurrentFilePassword ( unzFile  file,
const char *  password 
)
Here is the call graph for this function:

◆ unzReadCurrentFile()

int ZEXPORT unzReadCurrentFile ( unzFile  file,
voidp  buf,
uint32_t  len 
)

◆ unzSeek()

int ZEXPORT unzSeek ( unzFile  file,
uint32_t  offset,
int  origin 
)
Here is the call graph for this function:

◆ unzSeek64()

int ZEXPORT unzSeek64 ( unzFile  file,
uint64_t  offset,
int  origin 
)

◆ unzSetOffset()

int ZEXPORT unzSetOffset ( unzFile  file,
uint32_t  pos 
)
Here is the call graph for this function:

◆ unzSetOffset64()

int ZEXPORT unzSetOffset64 ( unzFile  file,
uint64_t  pos 
)

◆ unzTell()

int32_t ZEXPORT unzTell ( unzFile  file)

◆ unzTell64()

int64_t ZEXPORT unzTell64 ( unzFile  file)

Variable Documentation

◆ unz_copyright

const char unz_copyright[] = " unzip 1.2.0 Copyright 1998-2017 - https://github.com/nmoinvaz/minizip"