MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / unzGoToFilePos64

Function unzGoToFilePos64

lib/QuaZip/quazip/unzip.c:1356–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354}
1355
1356extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos)
1357{
1358 unz64_s* s;
1359 int err;
1360
1361 if (file==NULL || file_pos==NULL)
1362 return UNZ_PARAMERROR;
1363 s=(unz64_s*)file;
1364
1365 /* jump to the right spot */
1366 s->pos_in_central_dir = file_pos->pos_in_zip_directory;
1367 s->num_file = file_pos->num_of_file;
1368
1369 /* set the current file */
1370 err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
1371 &s->cur_file_info_internal,
1372 NULL,0,NULL,0,NULL,0);
1373 /* return results */
1374 s->current_file_ok = (err == UNZ_OK);
1375 return err;
1376}
1377
1378extern int ZEXPORT unzGoToFilePos(
1379 unzFile file,

Callers 3

unzGoToFilePosFunction · 0.85
goToFirstUnmappedFileMethod · 0.85
setCurrentFileMethod · 0.85

Tested by

no test coverage detected