| 769 | } |
| 770 | |
| 771 | bool Epub::readItemContentsToStream(const std::string& itemHref, Print& out, const size_t chunkSize) const { |
| 772 | if (itemHref.empty()) { |
| 773 | LOG_DBG("EBP", "Failed to read item, empty href"); |
| 774 | return false; |
| 775 | } |
| 776 | |
| 777 | const std::string path = FsHelpers::normalisePath(itemHref); |
| 778 | return ZipFile(filepath).readFileToStream(path.c_str(), out, chunkSize); |
| 779 | } |
| 780 | |
| 781 | bool Epub::getItemSize(const std::string& itemHref, size_t* size) const { |
| 782 | const std::string path = FsHelpers::normalisePath(itemHref); |
no test coverage detected