MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / calculateProgress

Method calculateProgress

lib/Xtc/Xtc.cpp:527–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527uint8_t Xtc::calculateProgress(uint32_t currentPage) const {
528 if (!loaded || !parser || parser->getPageCount() == 0) {
529 return 0;
530 }
531 return static_cast<uint8_t>((currentPage + 1) * 100 / parser->getPageCount());
532}
533
534xtc::XtcError Xtc::getLastError() const {
535 if (!parser) {

Callers 7

toSavedProgressMethod · 0.45
getPageProgressRangeFunction · 0.45
loopMethod · 0.45
onReaderMenuConfirmMethod · 0.45
renderStatusBarMethod · 0.45
getScreenshotInfoMethod · 0.45
getScreenshotInfoMethod · 0.45

Calls 1

getPageCountMethod · 0.45

Tested by

no test coverage detected