MCPcopy Create free account
hub / github.com/cinience/RedisStudio / unzGoToFirstFile

Function unzGoToFirstFile

DuiLib/Utils/XUnzip.cpp:3387–3400  ·  view source on GitHub ↗

Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem

Source from the content-addressed store, hash-verified

3385// Set the current file of the zipfile to the first file.
3386// return UNZ_OK if there is no problem
3387int unzGoToFirstFile (unzFile file)
3388{
3389 int err;
3390 unz_s* s;
3391 if (file==NULL) return UNZ_PARAMERROR;
3392 s=(unz_s*)file;
3393 s->pos_in_central_dir=s->offset_central_dir;
3394 s->num_file=0;
3395 err=unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,
3396 &s->cur_file_info_internal,
3397 NULL,0,NULL,0,NULL,0);
3398 s->current_file_ok = (err == UNZ_OK);
3399 return err;
3400}
3401
3402
3403// Set the current file of the zipfile to the next file.

Callers 4

unzOpenInternalFunction · 0.85
unzLocateFileFunction · 0.85
GetMethod · 0.85
UnzipMethod · 0.85

Tested by

no test coverage detected