Lines Matching refs:file

23   See the accompanying file LICENSE, version 2000-Apr-09 or later
36 Roger Schlafly, described by Phil Katz in the file appnote.txt. This
37 file (appnote.txt) is distributed with the PKZIP program (even in the
120 /* unz_file_info64_internal contain internal info about a file in zipfile*/
127 /* file_in_zip_read_info_s contain internal information about a file in zipfile,
167 ZPOS64_T num_file; /* number of the current file in the zipfile*/
168 ZPOS64_T pos_in_central_dir; /* pos of the current file in the central dir*/
169 ZPOS64_T current_file_ok; /* flag about the usability of the current file*/
176 unz_file_info64 cur_file_info; /* public info about the current file in zip*/
179 file if we are decompressing it */
490 Open a Zip file. path contain the full pathname (by example,
493 If the zipfile cannot be opened (file doesn't exist or in not valid), the
718 extern int ZEXPORT unzClose(unzFile file) {
720 if (file==NULL)
722 s=(unz64_s*)file;
725 unzCloseCurrentFile(file);
733 Open an opened zip file.
917 extern int ZEXPORT unzCloseFile (unzFile file)
920 if (file == NULL) {
923 s=(unz64_s *)file;
926 unzCloseCurrentFile(file);
937 extern int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64* pglobal_info) {
939 if (file==NULL)
941 s=(unz64_s*)file;
946 extern int ZEXPORT unzGetGlobalInfo(unzFile file, unz_global_info* pglobal_info32) {
948 if (file==NULL)
950 s=(unz64_s*)file;
973 Get Info about the current file in the zipfile, with internal only info
975 local int unz64local_GetCurrentFileInfoInternal(unzFile file,
994 if (file==NULL)
996 s=(unz64_s*)file;
1218 extern int ZEXPORT unzGetCurrentFileInfo64(unzFile file,
1223 return unz64local_GetCurrentFileInfoInternal(file,pfile_info,NULL,
1229 extern int ZEXPORT unzGetCurrentFileInfo(unzFile file,
1236 err = unz64local_GetCurrentFileInfoInternal(file,&file_info64,NULL,
1267 Set the current file of the zipfile to the first file.
1270 extern int ZEXPORT unzGoToFirstFile(unzFile file) {
1273 if (file==NULL)
1275 s=(unz64_s*)file;
1278 err=unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
1286 Set the current file of the zipfile to the next file.
1288 return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
1290 extern int ZEXPORT unzGoToNextFile(unzFile file) {
1294 if (file==NULL)
1296 s=(unz64_s*)file;
1306 err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
1315 Try locate the file szFileName in the zipfile.
1319 UNZ_OK if the file is found. It becomes the current file.
1320 UNZ_END_OF_LIST_OF_FILE if the file is not found
1322 extern int ZEXPORT unzLocateFile(unzFile file, const char *szFileName, int iCaseSensitivity) {
1326 /* We remember the 'current' position in the file so that we can jump
1335 if (file==NULL)
1341 s=(unz64_s*)file;
1351 err = unzGoToFirstFile(file);
1356 err = unzGetCurrentFileInfo64(file,NULL,
1364 err = unzGoToNextFile(file);
1368 /* We failed, so restore the state of the 'current file' to where we
1379 Set the current file of the zipfile to the first file and store current filename into szFileName.
1382 local int unzGoToFirstFileInternal (unzFile file, char *szFileName, uLong fileNameBufferSize)
1386 if (file == NULL) {
1389 s = (unz64_s *)file;
1392 err = unz64local_GetCurrentFileInfoInternal(file, &s->cur_file_info, &s->cur_file_info_internal,
1399 Set the current file of the zipfile to the next file and store current filename into szFileName.
1401 return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
1403 local int unzGoToNextFileInternal (unzFile file, char *szFileName, uLong fileNameBufferSize)
1408 if (file == NULL) {
1411 s=(unz64_s *)file;
1424 err = unz64local_GetCurrentFileInfoInternal(file, &s->cur_file_info, &s->cur_file_info_internal,
1431 Try locate the file szFileName in the zipfile, like unzLocateFile, but provide performance optimization.
1435 UNZ_OK if the file is found. It becomes the current file.
1436 UNZ_END_OF_LIST_OF_FILE if the file is not found
1438 extern int ZEXPORT unzLocateFile2 (unzFile file, const char *szFileName, int iCaseSensitivity)
1443 /* We remember the 'current' position in the file so that we can jump
1451 if (file == NULL) {
1459 s = (unz64_s *)file;
1472 err = unzGoToFirstFileInternal(file, szCurrentFileName, sizeof(szCurrentFileName) - 1);
1481 err = unzGoToNextFileInternal(file, szCurrentFileName, sizeof(szCurrentFileName) - 1);
1487 /* We failed, so restore the state of the 'current file' to where we
1504 // comprehensive file read to put the file I need in a memory.
1510 ZPOS64_T pos_in_zip_directory; // offset in file
1511 ZPOS64_T num_of_file; // # of file
1515 extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos* file_pos) {
1518 if (file==NULL || file_pos==NULL)
1520 s=(unz64_s*)file;
1530 extern int ZEXPORT unzGetFilePos(unzFile file, unz_file_pos* file_pos) {
1532 int err = unzGetFilePos64(file,&file_pos64);
1541 extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos) {
1545 if (file==NULL || file_pos==NULL)
1547 s=(unz64_s*)file;
1553 /* set the current file */
1554 err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
1562 extern int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos* file_pos) {
1569 return unzGoToFilePos64(file,&file_pos64);
1580 directory about this file
1668 Open for reading data the current file in the zipfile.
1669 If there is no error and the file is opened, the return value is UNZ_OK.
1671 extern int ZEXPORT unzOpenCurrentFile3(unzFile file, int* method,
1686 if (file==NULL)
1688 s=(unz64_s*)file;
1693 unzCloseCurrentFile(file);
1841 extern int ZEXPORT unzOpenCurrentFile(unzFile file) {
1842 return unzOpenCurrentFile3(file, NULL, NULL, 0, NULL);
1845 extern int ZEXPORT unzOpenCurrentFilePassword(unzFile file, const char* password) {
1846 return unzOpenCurrentFile3(file, NULL, NULL, 0, password);
1849 extern int ZEXPORT unzOpenCurrentFile2(unzFile file, int* method, int* level, int raw) {
1850 return unzOpenCurrentFile3(file, method, level, raw, NULL);
1855 extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64(unzFile file) {
1858 s=(unz64_s*)file;
1859 if (file==NULL)
1871 Read bytes from the current file.
1876 return 0 if the end of file was reached
1880 extern int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, unsigned len) {
1885 if (file==NULL)
1887 s=(unz64_s*)file;
2087 extern z_off_t ZEXPORT unztell(unzFile file) {
2090 if (file==NULL)
2092 s=(unz64_s*)file;
2101 extern ZPOS64_T ZEXPORT unztell64(unzFile file) {
2105 if (file==NULL)
2107 s=(unz64_s*)file;
2118 return 1 if the end of file was reached, 0 elsewhere
2120 extern int ZEXPORT unzeof(unzFile file) {
2123 if (file==NULL)
2125 s=(unz64_s*)file;
2140 Read extra field from the current file (opened by unzOpenCurrentFile)
2151 extern int ZEXPORT unzGetLocalExtrafield(unzFile file, voidp buf, unsigned len) {
2157 if (file==NULL)
2159 s=(unz64_s*)file;
2195 Close the file in zip opened with unzOpenCurrentFile
2196 Return UNZ_CRCERROR if all the file was read but the CRC is not good
2198 extern int ZEXPORT unzCloseCurrentFile(unzFile file) {
2203 if (file==NULL)
2205 s=(unz64_s*)file;
2244 extern int ZEXPORT unzGetGlobalComment(unzFile file, char * szComment, uLong uSizeBuf) {
2247 if (file==NULL)
2249 s=(unz64_s*)file;
2271 extern ZPOS64_T ZEXPORT unzGetOffset64(unzFile file) {
2274 if (file==NULL)
2276 s=(unz64_s*)file;
2285 extern uLong ZEXPORT unzGetOffset(unzFile file) {
2288 if (file==NULL)
2290 offset64 = unzGetOffset64(file);
2294 extern int ZEXPORT unzSetOffset64(unzFile file, ZPOS64_T pos) {
2298 if (file==NULL)
2300 s=(unz64_s*)file;
2304 err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
2311 extern int ZEXPORT unzSetOffset (unzFile file, uLong pos) {
2312 return unzSetOffset64(file,pos);