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

Method getBookSize

lib/Epub/Epub.cpp:854–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852int Epub::getTocIndexForSpineIndex(const int spineIndex) const { return getSpineItem(spineIndex).tocIndex; }
853
854size_t Epub::getBookSize() const {
855 if (!bookMetadataCache || !bookMetadataCache->isLoaded() || bookMetadataCache->getSpineCount() == 0) {
856 return 0;
857 }
858 return getCumulativeSpineItemSize(getSpineItemsCount() - 1);
859}
860
861int Epub::getSpineIndexForTextReference() const {
862 if (!bookMetadataCache || !bookMetadataCache->isLoaded()) {

Callers 5

toCrossPointMethod · 0.80
loopMethod · 0.80
jumpToPercentMethod · 0.80
onReaderMenuConfirmMethod · 0.80
getScreenshotInfoMethod · 0.80

Calls 2

getSpineCountMethod · 0.80
isLoadedMethod · 0.45

Tested by

no test coverage detected