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]
Macros | Typedefs | Functions | Variables
zip.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "zlib.h"
#include "zip.h"
#include <errno.h>
#include "crypt.h"

Go to the source code of this file.

Macros

#define local   static
 
#define VERSIONMADEBY   (0x0) /* platform depedent */
 
#define Z_BUFSIZE   (64*1024)
 
#define Z_MAXFILENAMEINZIP   (256)
 
#define ALLOC(size)   (malloc(size))
 
#define TRYFREE(p)   {if (p) free(p);}
 
#define MAKEULONG64(a, b)   ((ZPOS64_T)(((unsigned long)(a)) | ((ZPOS64_T)((unsigned long)(b))) << 32))
 
#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define SEEK_SET   0
 
#define SIZEDATA_INDATABLOCK   (4096-(4*4))
 
#define LOCALHEADERMAGIC   (0x04034b50)
 
#define CENTRALHEADERMAGIC   (0x02014b50)
 
#define ENDHEADERMAGIC   (0x06054b50)
 
#define ZIP64ENDHEADERMAGIC   (0x6064b50)
 
#define ZIP64ENDLOCHEADERMAGIC   (0x7064b50)
 
#define FLAG_LOCALHEADER_OFFSET   (0x06)
 
#define CRC_LOCALHEADER_OFFSET   (0x0e)
 
#define SIZECENTRALHEADER   (0x2e) /* 46 */
 
#define INCLUDECRYPTINGCODE_IFCRYPTALLOWED
 
#define BUFREADCOMMENT   (0x400)
 

Typedefs

typedef struct linkedlist_datablock_internal_s linkedlist_datablock_internal
 
typedef struct linkedlist_data_s linkedlist_data
 

Functions

local linkedlist_datablock_internalallocate_new_datablock ()
 
local void free_datablock (linkedlist_datablock_internal *ldi)
 
local void init_linkedlist (linkedlist_data *ll)
 
local void free_linkedlist (linkedlist_data *ll)
 
local int add_data_in_datablock (linkedlist_data *ll, const void *buf, uLong len)
 
local int zip64local_putValue OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T x, int nbByte))
 
local int zip64local_putValue (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T x, int nbByte)
 
local void zip64local_putValue_inmemory OF ((void *dest, ZPOS64_T x, int nbByte))
 
local void zip64local_putValue_inmemory (void *dest, ZPOS64_T x, int nbByte)
 
local uLong zip64local_TmzDateToDosDate (const tm_zip *ptm)
 
local int zip64local_getByte OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi))
 
local int zip64local_getByte (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi)
 
local int zip64local_getShort OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX))
 
local int zip64local_getShort (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX)
 
local int zip64local_getLong (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX)
 
local int zip64local_getLong64 OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX))
 
local int zip64local_getLong64 (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX)
 
local ZPOS64_T zip64local_SearchCentralDir OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream))
 
local ZPOS64_T zip64local_SearchCentralDir (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream)
 
local ZPOS64_T zip64local_SearchCentralDir64 (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream)
 
int LoadCentralDirectoryRecord (zip64_internal *pziinit)
 
zipFile ZEXPORT zipOpen3 (const void *pathname, int append, zipcharpc *globalcomment, zlib_filefunc64_32_def *pzlib_filefunc64_32_def)
 
zipFile ZEXPORT zipOpen2 (const char *pathname, int append, zipcharpc *globalcomment, zlib_filefunc_def *pzlib_filefunc32_def)
 
zipFile ZEXPORT zipOpen2_64 (const void *pathname, int append, zipcharpc *globalcomment, zlib_filefunc64_def *pzlib_filefunc_def)
 
zipFile ZEXPORT zipOpen (const char *pathname, int append)
 
zipFile ZEXPORT zipOpen64 (const void *pathname, int append)
 
int Write_LocalFileHeader (zip64_internal *zi, const char *filename, uInt size_extrafield_local, const void *extrafield_local)
 
int ZEXPORT zipOpenNewFileInZip4_64 (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 zipOpenNewFileInZip4 (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 zipOpenNewFileInZip3 (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 (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 zipOpenNewFileInZip2 (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 (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 zipOpenNewFileInZip64 (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 zipOpenNewFileInZip (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)
 
local int zip64FlushWriteBuffer (zip64_internal *zi)
 
int ZEXPORT zipWriteInFileInZip (zipFile file, const void *buf, unsigned int len)
 
int ZEXPORT zipCloseFileInZipRaw (zipFile file, uLong uncompressed_size, uLong crc32)
 
int ZEXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_size, uLong crc32)
 
int ZEXPORT zipCloseFileInZip (zipFile file)
 
int Write_Zip64EndOfCentralDirectoryLocator (zip64_internal *zi, ZPOS64_T zip64eocd_pos_inzip)
 
int Write_Zip64EndOfCentralDirectoryRecord (zip64_internal *zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip)
 
int Write_EndOfCentralDirectoryRecord (zip64_internal *zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip)
 
int Write_GlobalComment (zip64_internal *zi, const char *global_comment)
 
int ZEXPORT zipClose (zipFile file, const char *global_comment)
 
int ZEXPORT zipRemoveExtraInfoBlock (char *pData, int *dataLen, short sHeader)
 

Variables

const char zip_copyright [] =" zip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll"
 

Macro Definition Documentation

◆ ALLOC

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

◆ BUFREADCOMMENT

#define BUFREADCOMMENT   (0x400)

Definition at line 472 of file zip.c.

Referenced by zip64local_SearchCentralDir(), and zip64local_SearchCentralDir64().

◆ CENTRALHEADERMAGIC

#define CENTRALHEADERMAGIC   (0x02014b50)

Definition at line 104 of file zip.c.

Referenced by zipOpenNewFileInZip4_64().

◆ CRC_LOCALHEADER_OFFSET

#define CRC_LOCALHEADER_OFFSET   (0x0e)

Definition at line 110 of file zip.c.

◆ ENDHEADERMAGIC

#define ENDHEADERMAGIC   (0x06054b50)

Definition at line 105 of file zip.c.

Referenced by Write_EndOfCentralDirectoryRecord().

◆ FLAG_LOCALHEADER_OFFSET

#define FLAG_LOCALHEADER_OFFSET   (0x06)

Definition at line 109 of file zip.c.

◆ INCLUDECRYPTINGCODE_IFCRYPTALLOWED

#define INCLUDECRYPTINGCODE_IFCRYPTALLOWED

Definition at line 185 of file zip.c.

◆ local

#define local   static

◆ LOCALHEADERMAGIC

#define LOCALHEADERMAGIC   (0x04034b50)

Definition at line 103 of file zip.c.

Referenced by Write_LocalFileHeader().

◆ MAKEULONG64

#define MAKEULONG64 (   a,
  b 
)    ((ZPOS64_T)(((unsigned long)(a)) | ((ZPOS64_T)((unsigned long)(b))) << 32))

Definition at line 77 of file zip.c.

◆ SEEK_CUR

#define SEEK_CUR   1

Definition at line 80 of file zip.c.

◆ SEEK_END

#define SEEK_END   2

Definition at line 84 of file zip.c.

Referenced by zipOpen3().

◆ SEEK_SET

#define SEEK_SET   0

Definition at line 88 of file zip.c.

◆ SIZECENTRALHEADER

#define SIZECENTRALHEADER   (0x2e) /* 46 */

Definition at line 112 of file zip.c.

Referenced by zipOpenNewFileInZip4_64().

◆ SIZEDATA_INDATABLOCK

#define SIZEDATA_INDATABLOCK   (4096-(4*4))

Definition at line 101 of file zip.c.

Referenced by allocate_new_datablock(), and LoadCentralDirectoryRecord().

◆ TRYFREE

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

◆ VERSIONMADEBY

#define VERSIONMADEBY   (0x0) /* platform depedent */

◆ Z_BUFSIZE

#define Z_BUFSIZE   (64*1024)

Definition at line 54 of file zip.c.

Referenced by zipCloseFileInZipRaw64(), zipOpenNewFileInZip4_64(), and zipWriteInFileInZip().

◆ Z_MAXFILENAMEINZIP

#define Z_MAXFILENAMEINZIP   (256)

Definition at line 58 of file zip.c.

◆ ZIP64ENDHEADERMAGIC

#define ZIP64ENDHEADERMAGIC   (0x6064b50)

Definition at line 106 of file zip.c.

Referenced by Write_Zip64EndOfCentralDirectoryRecord().

◆ ZIP64ENDLOCHEADERMAGIC

#define ZIP64ENDLOCHEADERMAGIC   (0x7064b50)

Definition at line 107 of file zip.c.

Referenced by Write_Zip64EndOfCentralDirectoryLocator().

Typedef Documentation

◆ linkedlist_data

typedef struct linkedlist_data_s linkedlist_data

◆ linkedlist_datablock_internal

typedef struct linkedlist_datablock_internal_s linkedlist_datablock_internal

Function Documentation

◆ add_data_in_datablock()

local int add_data_in_datablock ( linkedlist_data ll,
const void buf,
uLong  len 
)

◆ allocate_new_datablock()

local linkedlist_datablock_internal* allocate_new_datablock ( )

Definition at line 189 of file zip.c.

References ALLOC, NULL, and SIZEDATA_INDATABLOCK.

Referenced by add_data_in_datablock().

◆ free_datablock()

local void free_datablock ( linkedlist_datablock_internal ldi)

Definition at line 203 of file zip.c.

References NULL, and TRYFREE.

Referenced by free_linkedlist().

◆ free_linkedlist()

local void free_linkedlist ( linkedlist_data ll)

Definition at line 218 of file zip.c.

References free_datablock(), and NULL.

Referenced by zipClose().

◆ init_linkedlist()

local void init_linkedlist ( linkedlist_data ll)

Definition at line 213 of file zip.c.

References NULL.

Referenced by zipOpen3().

◆ LoadCentralDirectoryRecord()

int LoadCentralDirectoryRecord ( zip64_internal *  pziinit)

◆ OF() [1/6]

local int zip64local_putValue OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T x, int nbByte)  )

◆ OF() [2/6]

◆ OF() [3/6]

local int zip64local_getByte OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi)  )

◆ OF() [4/6]

local int zip64local_getShort OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX)  )

◆ OF() [5/6]

local int zip64local_getLong64 OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX)  )

◆ OF() [6/6]

local ZPOS64_T zip64local_SearchCentralDir OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream)  )

◆ Write_EndOfCentralDirectoryRecord()

int Write_EndOfCentralDirectoryRecord ( zip64_internal *  zi,
uLong  size_centraldir,
ZPOS64_T  centraldir_pos_inzip 
)

Definition at line 1816 of file zip.c.

References ENDHEADERMAGIC, zip64local_putValue(), and ZIP_OK.

Referenced by zipClose().

◆ Write_GlobalComment()

int Write_GlobalComment ( zip64_internal *  zi,
const char *  global_comment 
)

Definition at line 1864 of file zip.c.

References NULL, zip64local_putValue(), ZIP_ERRNO, ZIP_OK, and ZWRITE64.

Referenced by zipClose().

◆ Write_LocalFileHeader()

int Write_LocalFileHeader ( zip64_internal *  zi,
const char *  filename,
uInt  size_extrafield_local,
const void extrafield_local 
)

Definition at line 958 of file zip.c.

References LOCALHEADERMAGIC, zip64local_putValue(), ZIP_ERRNO, ZIP_OK, ZTELL64, and ZWRITE64.

Referenced by zipOpenNewFileInZip4_64().

◆ Write_Zip64EndOfCentralDirectoryLocator()

int Write_Zip64EndOfCentralDirectoryLocator ( zip64_internal *  zi,
ZPOS64_T  zip64eocd_pos_inzip 
)

Definition at line 1755 of file zip.c.

References ZIP64ENDLOCHEADERMAGIC, zip64local_putValue(), and ZIP_OK.

Referenced by zipClose().

◆ Write_Zip64EndOfCentralDirectoryRecord()

int Write_Zip64EndOfCentralDirectoryRecord ( zip64_internal *  zi,
uLong  size_centraldir,
ZPOS64_T  centraldir_pos_inzip 
)

Definition at line 1777 of file zip.c.

References ZIP64ENDHEADERMAGIC, zip64local_putValue(), and ZIP_OK.

Referenced by zipClose().

◆ zip64FlushWriteBuffer()

local int zip64FlushWriteBuffer ( zip64_internal *  zi)

Definition at line 1363 of file zip.c.

References i, Z_BZIP2ED, zencode, ZIP_ERRNO, ZIP_OK, and ZWRITE64.

Referenced by zipCloseFileInZipRaw64(), and zipWriteInFileInZip().

◆ zip64local_getByte()

local int zip64local_getByte ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
int pi 
)

◆ zip64local_getLong()

local int zip64local_getLong ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
uLong pX 
)

◆ zip64local_getLong64()

local int zip64local_getLong64 ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
ZPOS64_T pX 
)

Definition at line 426 of file zip.c.

References i, zip64local_getByte(), and ZIP_OK.

Referenced by LoadCentralDirectoryRecord(), zip64local_getLong(), and zip64local_SearchCentralDir64().

◆ zip64local_getShort()

local int zip64local_getShort ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
uLong pX 
)

Definition at line 373 of file zip.c.

References i, local, OF(), zip64local_getByte(), zip64local_getLong(), and ZIP_OK.

Referenced by LoadCentralDirectoryRecord(), and zip64local_getByte().

◆ zip64local_putValue()

local int zip64local_putValue ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
ZPOS64_T  x,
int  nbByte 
)

◆ zip64local_putValue_inmemory()

local void zip64local_putValue_inmemory ( void dest,
ZPOS64_T  x,
int  nbByte 
)

Definition at line 311 of file zip.c.

Referenced by zip64local_putValue(), zipCloseFileInZipRaw64(), and zipOpenNewFileInZip4_64().

◆ zip64local_SearchCentralDir()

local ZPOS64_T zip64local_SearchCentralDir ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream 
)

◆ zip64local_SearchCentralDir64()

local ZPOS64_T zip64local_SearchCentralDir64 ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream 
)

◆ zip64local_TmzDateToDosDate()

local uLong zip64local_TmzDateToDosDate ( const tm_zip ptm)

◆ zipClose()

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

◆ zipCloseFileInZip()

int ZEXPORT zipCloseFileInZip ( zipFile  file)

Definition at line 1750 of file zip.c.

References zipCloseFileInZipRaw().

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

◆ zipCloseFileInZipRaw()

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

Definition at line 1509 of file zip.c.

References zipCloseFileInZipRaw64().

Referenced by zipCloseFileInZip().

◆ zipCloseFileInZipRaw64()

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

◆ zipOpen()

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

Definition at line 948 of file zip.c.

References NULL, and zipOpen3().

◆ zipOpen2()

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

Definition at line 920 of file zip.c.

References fill_zlib_filefunc64_32_def_from_filefunc32(), NULL, and zipOpen3().

◆ zipOpen2_64()

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

◆ zipOpen3()

zipFile ZEXPORT zipOpen3 ( const void pathname,
int  append,
zipcharpc globalcomment,
zlib_filefunc64_32_def pzlib_filefunc64_32_def 
)

◆ zipOpen64()

zipFile ZEXPORT zipOpen64 ( const void pathname,
int  append 
)

Definition at line 953 of file zip.c.

References NULL, and zipOpen3().

Referenced by main().

◆ zipOpenNewFileInZip()

int ZEXPORT zipOpenNewFileInZip ( 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 
)

◆ zipOpenNewFileInZip2()

int ZEXPORT zipOpenNewFileInZip2 ( 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 
)

◆ zipOpenNewFileInZip2_64()

int ZEXPORT zipOpenNewFileInZip2_64 ( 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 
)

◆ zipOpenNewFileInZip3()

int ZEXPORT zipOpenNewFileInZip3 ( 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 
)

Definition at line 1281 of file zip.c.

References VERSIONMADEBY, and zipOpenNewFileInZip4_64().

◆ zipOpenNewFileInZip3_64()

int ZEXPORT zipOpenNewFileInZip3_64 ( 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 
)

Definition at line 1296 of file zip.c.

References VERSIONMADEBY, and zipOpenNewFileInZip4_64().

Referenced by main().

◆ zipOpenNewFileInZip4()

int ZEXPORT zipOpenNewFileInZip4 ( 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 
)

Definition at line 1265 of file zip.c.

References zipOpenNewFileInZip4_64().

◆ zipOpenNewFileInZip4_64()

int ZEXPORT zipOpenNewFileInZip4_64 ( 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 
)

◆ zipOpenNewFileInZip64()

int ZEXPORT zipOpenNewFileInZip64 ( 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 
)

◆ zipRemoveExtraInfoBlock()

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

Definition at line 1951 of file zip.c.

References ALLOC, NULL, TRYFREE, ZIP_ERRNO, ZIP_OK, and ZIP_PARAMERROR.

◆ zipWriteInFileInZip()

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

Definition at line 1402 of file zip.c.

References crc32(), deflate(), i, NULL, Z_BUFSIZE, Z_BZIP2ED, Z_DEFLATED, Z_NO_FLUSH, zip64FlushWriteBuffer(), ZIP_ERRNO, ZIP_OK, and ZIP_PARAMERROR.

Referenced by main().

Variable Documentation

◆ zip_copyright

const char zip_copyright[] =" zip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll"

Definition at line 98 of file zip.c.