MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / unzSetOffset64

Function unzSetOffset64

common/minizip/unzip.c:2104–2120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2102}
2103
2104extern int ZEXPORT unzSetOffset64(unzFile file, ZPOS64_T pos)
2105{
2106 unz64_s* s;
2107 int err;
2108
2109 if (file==NULL)
2110 return UNZ_PARAMERROR;
2111 s=(unz64_s*)file;
2112
2113 s->pos_in_central_dir = pos;
2114 s->num_file = s->gi.number_entry; /* hack */
2115 err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
2116 &s->cur_file_info_internal,
2117 NULL,0,NULL,0,NULL,0);
2118 s->current_file_ok = (err == UNZ_OK);
2119 return err;
2120}
2121
2122extern int ZEXPORT unzSetOffset (unzFile file, uLong pos)
2123{

Callers 1

unzSetOffsetFunction · 0.85

Tested by

no test coverage detected