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

Method decompressGroup

lib/EpdFont/FontDecompressor.cpp:60–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool FontDecompressor::decompressGroup(const EpdFontData* fontData, uint16_t groupIndex, uint8_t* outBuf,
61 uint32_t outSize) {
62 const EpdFontGroup& group = fontData->groups[groupIndex];
63
64 const uint32_t tDecomp = millis();
65 inflateReader.init(false);
66 inflateReader.setSource(&fontData->bitmap[group.compressedOffset], group.compressedSize);
67 if (!inflateReader.read(outBuf, outSize)) {
68 stats.decompressTimeMs += millis() - tDecomp;
69 LOG_ERR("FDC", "Decompression failed for group %u", groupIndex);
70 return false;
71 }
72 stats.decompressTimeMs += millis() - tDecomp;
73 return true;
74}
75
76// --- Byte-aligned helpers ---
77

Callers

nothing calls this directly

Calls 3

setSourceMethod · 0.80
initMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected