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

Method goToFirstUnmappedFile

lib/QuaZip/quazip/quazip.cpp:192–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192bool QuaZipPrivate::goToFirstUnmappedFile()
193{
194 zipError = UNZ_OK;
195 if (mode != QuaZip::mdUnzip) {
196 qWarning("QuaZipPrivate::goToNextUnmappedFile(): ZIP is not open in mdUnzip mode");
197 return false;
198 }
199 // If not mapped anything, go to beginning
200 if (lastMappedDirectoryEntry.pos_in_zip_directory == 0) {
201 unzGoToFirstFile(unzFile_f);
202 } else {
203 // Goto the last one mapped, plus one
204 unzGoToFilePos64(unzFile_f, &lastMappedDirectoryEntry);
205 unzGoToNextFile(unzFile_f);
206 }
207 hasCurrentFile_f=zipError==UNZ_OK;
208 if(zipError==UNZ_END_OF_LIST_OF_FILE)
209 zipError=UNZ_OK;
210 return hasCurrentFile_f;
211}
212
213QuaZip::QuaZip():
214 p(new QuaZipPrivate(this))

Callers 1

setCurrentFileMethod · 0.80

Calls 3

unzGoToFirstFileFunction · 0.85
unzGoToFilePos64Function · 0.85
unzGoToNextFileFunction · 0.85

Tested by

no test coverage detected