Condition of use and distribution are the same than zlib :
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.
#ifdefined(STRICTZIP) || defined(STRICTZIPUNZIP) /* like the STRICT of WIN32, we define a pointer that cannot be converted
from (void*) without cast */ typedefstruct TagzipFile__ { int unused; } zipFile__; typedef zipFile__ *zipFile; #else typedef voidp zipFile; #endif
/* tm_zip contain date/time info */ typedefstruct tm_zip_s
{ int tm_sec; /* seconds after the minute - [0,59] */ int tm_min; /* minutes after the hour - [0,59] */ int tm_hour; /* hours since midnight - [0,23] */ int tm_mday; /* day of the month - [1,31] */ int tm_mon; /* months since January - [0,11] */ int tm_year; /* years - [1980..2044] */
} tm_zip;
typedefstruct
{
tm_zip tmz_date; /* date in understandable format */
uLong dosDate; /* if dos_date == 0, tmu_date is used */ /* uLong flag; */ /* general purpose bit flag 2 bytes */
extern zipFile ZEXPORT zipOpen(constchar *pathname, int append); extern zipFile ZEXPORT zipOpen64(constvoid *pathname, int append); /* Create a zipfile. pathname contain on Windows XP a filename like "c:\\zlib\\zlib113.zip" or on an Unix computer "zlib/zlib113.zip". if the file pathname exist and append==APPEND_STATUS_CREATEAFTER, the zip will be created at the end of the file. (useful if the file contain a self extractor code) if the file pathname exist and append==APPEND_STATUS_ADDINZIP, we will add files in existing zip (be sure you don't add file that doesn't exist) If the zipfile cannot be opened, the return value is NULL. Else, the return value is a zipFile Handle, usable with other function of this zip package.
*/
/* Note : there is no delete function into a zipfile. If you want delete file into a zipfile, you must open a zipfile, and create another Of course, you can use RAW reading and writing to copy the file you did not want delete
*/
externint ZEXPORT zipOpenNewFileInZip64(zipFile file, constchar* filename, const zip_fileinfo* zipfi, constvoid* extrafield_local,
uInt size_extrafield_local, constvoid* extrafield_global,
uInt size_extrafield_global, constchar* comment, int method, int level, int zip64);
/* Open a file in the ZIP for writing. filename : the filename in zip (if NULL, '-' without quote will be used *zipfi contain supplemental information if extrafield_local!=NULL and size_extrafield_local>0, extrafield_local contains the extrafield data the the local header if extrafield_global!=NULL and size_extrafield_global>0, extrafield_global contains the extrafield data the the local header if comment != NULL, comment contain the comment string method contain the compression method (0 for store, Z_DEFLATED for deflate) level contain the level of compression (can be Z_DEFAULT_COMPRESSION) zip64 is set to 1 if a zip64 extended information block should be added to the local file header. this MUST be '1' if the uncompressed size is >= 0xffffffff.
*/
externint ZEXPORT zipOpenNewFileInZip2(zipFile file, constchar* filename, const zip_fileinfo* zipfi, constvoid* extrafield_local,
uInt size_extrafield_local, constvoid* extrafield_global,
uInt size_extrafield_global, constchar* comment, int method, int level, int raw);
externint ZEXPORT zipOpenNewFileInZip2_64(zipFile file, constchar* filename, const zip_fileinfo* zipfi, constvoid* extrafield_local,
uInt size_extrafield_local, constvoid* extrafield_global,
uInt size_extrafield_global, constchar* comment, int method, int level, int raw, int zip64); /* Same than zipOpenNewFileInZip, except if raw=1, we write raw file
*/
externint ZEXPORT zipOpenNewFileInZip3(zipFile file, constchar* filename, const zip_fileinfo* zipfi, constvoid* extrafield_local,
uInt size_extrafield_local, constvoid* extrafield_global,
uInt size_extrafield_global, constchar* comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, constchar* password,
uLong crcForCrypting);
externint ZEXPORT zipOpenNewFileInZip3_64(zipFile file, constchar* filename, const zip_fileinfo* zipfi, constvoid* extrafield_local,
uInt size_extrafield_local, constvoid* extrafield_global,
uInt size_extrafield_global, constchar* comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, constchar* password,
uLong crcForCrypting, int zip64);
/* Same than zipOpenNewFileInZip2, except windowBits,memLevel,,strategy : see parameter strategy in deflateInit2 password : crypting password (NULL for no crypting) crcForCrypting : crc of file to compress (needed for crypting)
*/
externint ZEXPORT zipOpenNewFileInZip4(zipFile file, constchar* filename, const zip_fileinfo* zipfi, constvoid* extrafield_local,
uInt size_extrafield_local, constvoid* extrafield_global,
uInt size_extrafield_global, constchar* comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, constchar* password,
uLong crcForCrypting,
uLong versionMadeBy,
uLong flagBase);
externint ZEXPORT zipOpenNewFileInZip4_64(zipFile file, constchar* filename, const zip_fileinfo* zipfi, constvoid* extrafield_local,
uInt size_extrafield_local, constvoid* extrafield_global,
uInt size_extrafield_global, constchar* comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, constchar* password,
uLong crcForCrypting,
uLong versionMadeBy,
uLong flagBase, int zip64); /* Same than zipOpenNewFileInZip4, except versionMadeBy : value for Version made by field flag : value for flag field (compression level info will be added)
*/
externint ZEXPORT zipWriteInFileInZip(zipFile file, constvoid* buf, unsigned len); /* Write data in the zipfile
*/
externint ZEXPORT zipCloseFileInZip(zipFile file); /* Close the current file in the zipfile
*/
/* Close the current file in the zipfile, for file opened with parameter raw=1 in zipOpenNewFileInZip2 uncompressed_size and crc32 are value for the uncompressed size
*/
externint ZEXPORT zipClose(zipFile file, constchar* global_comment); /* Close the zipfile
*/
externint ZEXPORT zipRemoveExtraInfoBlock(char* pData, int* dataLen, short sHeader); /* zipRemoveExtraInfoBlock - Added by Mathias Svensson
Remove extra information block from a extra information data for the local file header or central directory header
It is needed to remove ZIP64 extra information blocks when before data is written if using RAW mode.
0x0001 is the signature header for the ZIP64 extra information blocks
usage. Remove ZIP64 Extra information from a central director extra field data zipRemoveExtraInfoBlock(pCenDirExtraFieldData, &nCenDirExtraFieldDataLen, 0x0001);
Remove ZIP64 Extra information from a Local File Header extra field data zipRemoveExtraInfoBlock(pLocalHeaderExtraFieldData, &nLocalHeaderExtraFieldDataLen, 0x0001);
*/
#ifdef __cplusplus
} #endif
#endif/* _zip64_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.