Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Classes | Macros | Typedefs | Functions
zip.h File Reference
#include "zlib.h"
#include "ioapi.h"

Go to the source code of this file.

Classes

struct  tm_zip_s
 
struct  zip_fileinfo
 

Macros

#define Z_BZIP2ED   12
 
#define ZIP_OK   (0)
 
#define ZIP_EOF   (0)
 
#define ZIP_ERRNO   (Z_ERRNO)
 
#define ZIP_PARAMERROR   (-102)
 
#define ZIP_BADZIPFILE   (-103)
 
#define ZIP_INTERNALERROR   (-104)
 
#define DEF_MEM_LEVEL   MAX_MEM_LEVEL
 
#define APPEND_STATUS_CREATE   (0)
 
#define APPEND_STATUS_CREATEAFTER   (1)
 
#define APPEND_STATUS_ADDINZIP   (2)
 

Typedefs

typedef voidp zipFile
 
typedef struct tm_zip_s tm_zip
 
typedef const char * zipcharpc
 

Functions

zipFile ZEXPORT zipOpen OF ((const char *pathname, int append))
 
zipFile ZEXPORT zipOpen64 OF ((const void *pathname, int append))
 
zipFile ZEXPORT zipOpen2 OF ((const char *pathname, int append, zipcharpc *globalcomment, zlib_filefunc_def *pzlib_filefunc_def))
 
zipFile ZEXPORT zipOpen2_64 OF ((const void *pathname, int append, zipcharpc *globalcomment, zlib_filefunc64_def *pzlib_filefunc_def))
 
int ZEXPORT zipOpenNewFileInZip OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level))
 
int ZEXPORT zipOpenNewFileInZip64 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int zip64))
 
int ZEXPORT zipOpenNewFileInZip2 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw))
 
int ZEXPORT zipOpenNewFileInZip2_64 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int zip64))
 
int ZEXPORT zipOpenNewFileInZip3 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting))
 
int ZEXPORT zipOpenNewFileInZip3_64 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, int zip64))
 
int ZEXPORT zipOpenNewFileInZip4 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase))
 
int ZEXPORT zipOpenNewFileInZip4_64 OF ((zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase, int zip64))
 
int ZEXPORT zipWriteInFileInZip OF ((zipFile file, const void *buf, unsigned len))
 
int ZEXPORT zipCloseFileInZip OF ((zipFile file))
 
int ZEXPORT zipCloseFileInZipRaw OF ((zipFile file, uLong uncompressed_size, uLong crc32))
 
int ZEXPORT zipCloseFileInZipRaw64 OF ((zipFile file, ZPOS64_T uncompressed_size, uLong crc32))
 
int ZEXPORT zipClose OF ((zipFile file, const char *global_comment))
 
int ZEXPORT zipRemoveExtraInfoBlock OF ((char *pData, int *dataLen, short sHeader))
 

Macro Definition Documentation

◆ APPEND_STATUS_ADDINZIP

#define APPEND_STATUS_ADDINZIP   (2)

Definition at line 114 of file zip.h.

Referenced by zipOpen3().

◆ APPEND_STATUS_CREATE

#define APPEND_STATUS_CREATE   (0)

Definition at line 112 of file zip.h.

Referenced by zipOpen3().

◆ APPEND_STATUS_CREATEAFTER

#define APPEND_STATUS_CREATEAFTER   (1)

Definition at line 113 of file zip.h.

Referenced by zipOpen3().

◆ DEF_MEM_LEVEL

#define DEF_MEM_LEVEL   MAX_MEM_LEVEL

Definition at line 83 of file zip.h.

◆ Z_BZIP2ED

#define Z_BZIP2ED   12

Definition at line 61 of file zip.h.

◆ ZIP_BADZIPFILE

#define ZIP_BADZIPFILE   (-103)

Definition at line 76 of file zip.h.

Referenced by LoadCentralDirectoryRecord(), and zipCloseFileInZipRaw64().

◆ ZIP_EOF

#define ZIP_EOF   (0)

Definition at line 73 of file zip.h.

Referenced by zip64local_getByte().

◆ ZIP_ERRNO

#define ZIP_ERRNO   (Z_ERRNO)

◆ ZIP_INTERNALERROR

#define ZIP_INTERNALERROR   (-104)

Definition at line 77 of file zip.h.

Referenced by add_data_in_datablock(), main(), and zipOpenNewFileInZip4_64().

◆ ZIP_OK

#define ZIP_OK   (0)

◆ ZIP_PARAMERROR

#define ZIP_PARAMERROR   (-102)

Typedef Documentation

◆ tm_zip

typedef struct tm_zip_s tm_zip

◆ zipcharpc

typedef const char* zipcharpc

Definition at line 109 of file zip.h.

◆ zipFile

typedef voidp zipFile

Definition at line 69 of file zip.h.

Function Documentation

◆ OF() [1/18]

zipFile ZEXPORT zipOpen OF ( (const char *pathname, int append)  )

◆ OF() [2/18]

zipFile ZEXPORT zipOpen64 OF ( (const void *pathname, int append)  )

◆ OF() [3/18]

zipFile ZEXPORT zipOpen2 OF ( (const char *pathname, int append, zipcharpc *globalcomment, zlib_filefunc_def *pzlib_filefunc_def)  )

◆ OF() [4/18]

zipFile ZEXPORT zipOpen2_64 OF ( (const void *pathname, int append, zipcharpc *globalcomment, zlib_filefunc64_def *pzlib_filefunc_def)  )

◆ OF() [5/18]

int ZEXPORT zipOpenNewFileInZip OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level )

◆ OF() [6/18]

int ZEXPORT zipOpenNewFileInZip64 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int zip64)  )

◆ OF() [7/18]

int ZEXPORT zipOpenNewFileInZip2 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw)  )

◆ OF() [8/18]

int ZEXPORT zipOpenNewFileInZip2_64 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int zip64)  )

◆ OF() [9/18]

int ZEXPORT zipOpenNewFileInZip3 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting)  )

◆ OF() [10/18]

int ZEXPORT zipOpenNewFileInZip3_64 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, int zip64)  )

◆ OF() [11/18]

int ZEXPORT zipOpenNewFileInZip4 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase)  )

◆ OF() [12/18]

int ZEXPORT zipOpenNewFileInZip4_64 OF ( (zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase, int zip64)  )

◆ OF() [13/18]

int ZEXPORT zipWriteInFileInZip OF ( (zipFile file, const void *buf, unsigned len )

◆ OF() [14/18]

◆ OF() [15/18]

int ZEXPORT zipCloseFileInZipRaw OF ( (zipFile file, uLong uncompressed_size, uLong crc32 )

◆ OF() [16/18]

int ZEXPORT zipCloseFileInZipRaw64 OF ( (zipFile file, ZPOS64_T uncompressed_size, uLong crc32 )

◆ OF() [17/18]

int ZEXPORT zipClose OF ( (zipFile file, const char *global_comment)  )

◆ OF() [18/18]

int ZEXPORT zipRemoveExtraInfoBlock OF ( (char *pData, int *dataLen, short sHeader)  )