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

Method getItemSize

lib/Epub/Epub.cpp:781–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781bool Epub::getItemSize(const std::string& itemHref, size_t* size) const {
782 const std::string path = FsHelpers::normalisePath(itemHref);
783 return ZipFile(filepath).getInflatedFileSize(path.c_str(), size);
784}
785
786int Epub::getSpineItemsCount() const {
787 if (!bookMetadataCache || !bookMetadataCache->isLoaded()) {

Callers 1

generateXPathMethod · 0.80

Calls 3

normalisePathFunction · 0.85
getInflatedFileSizeMethod · 0.80
ZipFileClass · 0.70

Tested by

no test coverage detected