ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

unzip.cpp File Reference

#include "common/scummsys.h"
#include <zlib.h>
#include "common/fs.h"
#include "common/unzip.h"
#include "common/memstream.h"
#include "common/hashmap.h"
#include "common/hash-str.h"
Include dependency graph for unzip.cpp:

Go to the source code of this file.

Classes

struct  tm_unz
struct  unz_global_info
struct  unz_file_info
struct  unz_file_info_internal
struct  file_in_zip_read_info_s
struct  cached_file_in_zip
struct  unz_s
class  Common::ZipArchive

Namespaces

namespace  Common
 

Internal interface to the QuickTime audio decoder.


Defines

#define FORBIDDEN_SYMBOL_ALLOW_ALL
#define UNZ_OK   (0)
#define UNZ_END_OF_LIST_OF_FILE   (-100)
#define UNZ_ERRNO   (Z_ERRNO)
#define UNZ_EOF   (0)
#define UNZ_PARAMERROR   (-102)
#define UNZ_BADZIPFILE   (-103)
#define UNZ_INTERNALERROR   (-104)
#define UNZ_CRCERROR   (-105)
#define CASESENSITIVITYDEFAULT_NO
#define UNZ_BUFSIZE   (16384)
#define UNZ_MAXFILENAMEINZIP   (256)
#define SIZECENTRALDIRITEM   (0x2e)
#define SIZEZIPLOCALHEADER   (0x1e)
#define CASESENSITIVITYDEFAULTVALUE   2
#define BUFREADCOMMENT   (0x400)

Typedefs

typedef voidp unzFile
typedef Common::HashMap
< Common::String,
cached_file_in_zip,
Common::IgnoreCase_Hash,
Common::IgnoreCase_EqualTo
ZipHash

Functions

int unzStringFileNameCompare (const char *fileName1, const char *fileName2, int iCaseSensitivity)
int unzClose (unzFile file)
int unzGetGlobalInfo (unzFile file, unz_global_info *pglobal_info)
int unzGetGlobalComment (unzFile file, char *szComment, uLong uSizeBuf)
int unzGoToFirstFile (unzFile file)
int unzGoToNextFile (unzFile file)
int unzLocateFile (unzFile file, const char *szFileName, int iCaseSensitivity)
int unzGetCurrentFileInfo (unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
int unzOpenCurrentFile (unzFile file)
int unzCloseCurrentFile (unzFile file)
int unzReadCurrentFile (unzFile file, voidp buf, unsigned len)
z_off_t unztell (unzFile file)
int unzeof (unzFile file)
int unzGetLocalExtrafield (unzFile file, voidp buf, unsigned len)
static int unzlocal_getShort (Common::SeekableReadStream *fin, uLong *pX)
static int unzlocal_getLong (Common::SeekableReadStream *fin, uLong *pX)
static uLong unzlocal_SearchCentralDir (Common::SeekableReadStream &fin)
unzFile unzOpen (Common::SeekableReadStream *stream)
static void unzlocal_DosDateToTmuDate (uLong ulDosDate, tm_unz *ptm)
static int unzlocal_GetCurrentFileInfoInternal (unzFile file, unz_file_info *pfile_info, unz_file_info_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
static int unzlocal_CheckCurrentFileCoherencyHeader (unz_s *s, uInt *piSizeVar, uLong *poffset_local_extrafield, uInt *psize_local_extrafield)
Archive * Common::makeZipArchive (const String &name)
 This factory method creates an Archive instance corresponding to the content of the ZIP compressed file with the given name.
Archive * Common::makeZipArchive (const FSNode &node)
 This factory method creates an Archive instance corresponding to the content of the ZIP compressed file with the given name.
Archive * Common::makeZipArchive (SeekableReadStream *stream)
 This factory method creates an Archive instance corresponding to the content of the given ZIP compressed datastream.

Define Documentation

#define BUFREADCOMMENT   (0x400)

Definition at line 462 of file unzip.cpp.

#define CASESENSITIVITYDEFAULT_NO

Definition at line 321 of file unzip.cpp.

#define CASESENSITIVITYDEFAULTVALUE   2

Definition at line 438 of file unzip.cpp.

#define FORBIDDEN_SYMBOL_ALLOW_ALL

Definition at line 70 of file unzip.cpp.

#define SIZECENTRALDIRITEM   (0x2e)

Definition at line 333 of file unzip.cpp.

#define SIZEZIPLOCALHEADER   (0x1e)

Definition at line 334 of file unzip.cpp.

#define UNZ_BADZIPFILE   (-103)

Definition at line 127 of file unzip.cpp.

#define UNZ_BUFSIZE   (16384)

Definition at line 326 of file unzip.cpp.

#define UNZ_CRCERROR   (-105)

Definition at line 129 of file unzip.cpp.

#define UNZ_END_OF_LIST_OF_FILE   (-100)

Definition at line 123 of file unzip.cpp.

#define UNZ_EOF   (0)

Definition at line 125 of file unzip.cpp.

#define UNZ_ERRNO   (Z_ERRNO)

Definition at line 124 of file unzip.cpp.

#define UNZ_INTERNALERROR   (-104)

Definition at line 128 of file unzip.cpp.

#define UNZ_MAXFILENAMEINZIP   (256)

Definition at line 330 of file unzip.cpp.

#define UNZ_OK   (0)

Definition at line 122 of file unzip.cpp.

#define UNZ_PARAMERROR   (-102)

Definition at line 126 of file unzip.cpp.


Typedef Documentation

typedef voidp unzFile

Definition at line 119 of file unzip.cpp.


Function Documentation

int unzClose ( unzFile  file  ) 

Definition at line 638 of file unzip.cpp.

int unzCloseCurrentFile ( unzFile  file  ) 

Definition at line 1350 of file unzip.cpp.

int unzeof ( unzFile  file  ) 

Definition at line 1276 of file unzip.cpp.

int unzGetCurrentFileInfo ( unzFile  file,
unz_file_info pfile_info,
char *  szFileName,
uLong  fileNameBufferSize,
void *  extraField,
uLong  extraFieldBufferSize,
char *  szComment,
uLong  commentBufferSize 
)

Definition at line 850 of file unzip.cpp.

int unzGetGlobalComment ( unzFile  file,
char *  szComment,
uLong  uSizeBuf 
)

Definition at line 1393 of file unzip.cpp.

int unzGetGlobalInfo ( unzFile  file,
unz_global_info pglobal_info 
)

Definition at line 657 of file unzip.cpp.

int unzGetLocalExtrafield ( unzFile  file,
voidp  buf,
unsigned  len 
)

Definition at line 1307 of file unzip.cpp.

int unzGoToFirstFile ( unzFile  file  ) 

Definition at line 866 of file unzip.cpp.

int unzGoToNextFile ( unzFile  file  ) 

Definition at line 887 of file unzip.cpp.

static int unzlocal_CheckCurrentFileCoherencyHeader ( unz_s s,
uInt *  piSizeVar,
uLong *  poffset_local_extrafield,
uInt *  psize_local_extrafield 
) [static]

Definition at line 954 of file unzip.cpp.

static void unzlocal_DosDateToTmuDate ( uLong  ulDosDate,
tm_unz ptm 
) [static]

Definition at line 670 of file unzip.cpp.

static int unzlocal_GetCurrentFileInfoInternal ( unzFile  file,
unz_file_info pfile_info,
unz_file_info_internal pfile_info_internal,
char *  szFileName,
uLong  fileNameBufferSize,
void *  extraField,
uLong  extraFieldBufferSize,
char *  szComment,
uLong  commentBufferSize 
) [static]

Definition at line 696 of file unzip.cpp.

static int unzlocal_getLong ( Common::SeekableReadStream fin,
uLong *  pX 
) [static]

Definition at line 431 of file unzip.cpp.

static int unzlocal_getShort ( Common::SeekableReadStream fin,
uLong *  pX 
) [static]

Definition at line 426 of file unzip.cpp.

static uLong unzlocal_SearchCentralDir ( Common::SeekableReadStream fin  )  [static]

Definition at line 468 of file unzip.cpp.

int unzLocateFile ( unzFile  file,
const char *  szFileName,
int  iCaseSensitivity 
)

Definition at line 917 of file unzip.cpp.

unzFile unzOpen ( Common::SeekableReadStream stream  ) 

Definition at line 529 of file unzip.cpp.

int unzOpenCurrentFile ( unzFile  file  ) 

Definition at line 1041 of file unzip.cpp.

int unzReadCurrentFile ( unzFile  file,
voidp  buf,
unsigned  len 
)

Definition at line 1138 of file unzip.cpp.

int unzStringFileNameCompare ( const char *  fileName1,
const char *  fileName2,
int  iCaseSensitivity 
)

Definition at line 452 of file unzip.cpp.

z_off_t unztell ( unzFile  file  ) 

Definition at line 1258 of file unzip.cpp.



Generated on Sat Mar 16 2019 05:04:13 for ResidualVM by doxygen 1.7.1
curved edge   curved edge