20 static constexpr int MAX_STR_LEN = 254;
21 static constexpr int TBL_SIZE = 16;
22 static constexpr int MAX_HUF_CNT = 127;
24 [[nodiscard]]
inline uint8_t charIn();
27 [[nodiscard]]
unsigned rdStrLen();
28 [[nodiscard]]
int rdStrPos();
29 [[nodiscard]]
bool bitIn();
40 std::span<const uint8_t> file;
41 std::vector<SectorBuffer> output;
44 std::array<int, TBL_SIZE + 1> cpDist;
45 std::array<int, TBL_SIZE> tblSizes;
46 std::array<HufNode, 2 * TBL_SIZE - 1> hufTbl;
51 static constexpr std::array<uint8_t, TBL_SIZE> cpdExt = {
52 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12