Decoder.cpp(3)

πŸ“¦
version 7.21.7 Β· 4 versions
, in fedora 43

πŸ’– Decoder.cpp β€” the manual page, but make it cute πŸ’–

okay bestie so this is Decoder.cpp(3) from libpgf, and before you ask, yes it's a manual page, no it's not boring, we're making it iconic. it's in section 3 of the manual, the whole thing lives under libpgf, and it is literally the PGF decoder class implementation. let's get into it 🫢


✨ NAME ✨

Decoder.cpp β€” the PGF decoder class implementation. that's the whole name section, short and sweet, main character energy fr fr πŸ’…


✨ SYNOPSIS ✨

so to even look at this thing you gotta pull it in like this:

#include 'Decoder.h'
note the quotes, bestie, not angle brackets. that's what it says, that's what you type, no cap πŸŽ€

🌸 Macros 🌸

these two macros are living in here and they're both defined up top, here's the tea:

  • #define CodeBufferBitLen (CodeBufferLen*WordWidth) β€” the max number of bits that can fit in m_codeBuffer. that's it, that's the vibe.
  • #define MaxCodeLen ((1 << RLblockSizeLen) - 1) β€” the max length of an RL encoded block. yes the shift is real, yes the minus one matters, slay ✨

✨ Detailed Description ✨

PGF decoder class implementation. that's the entire description and honestly? it ate. it knows what it is, it doesn't need to over-explain 😌

🌈 Author 🌈

  • C. Stamm, R. Spuler β€” the two legends behind this file, we stan πŸ’œ

Definition in file Decoder.cpp. so if you wanna go read the real thing, that's where it's at πŸ¦‹


✨ Macro Definition Documentation ✨

this is the part where it tells you exactly where each macro is defined, because apparently we're being precise today and honestly good for us πŸ‘‘

πŸ’… #define CodeBufferBitLen (CodeBufferLen*WordWidth) πŸ’…

max number of bits in m_codeBuffer.

Definition at line 58 of file Decoder.cpp. line fifty-eight bestie, write it down πŸ“

πŸ’… #define MaxCodeLen ((1 << RLblockSizeLen) - 1) πŸ’…

max length of RL encoded block.

Definition at line 59 of file Decoder.cpp. right after the other one, they're neighbors, they're besties too obviously πŸ₯°


✨ Author ✨

Generated automatically by Doxygen for libpgf from the source code. so nobody hand-wrote this prose, a robot did it, and honestly the robot ate. no cap πŸ€–πŸ’–


and that's the whole page, bestie!! πŸŽ€ before you go β€” this lil manual page is Version 7.21.2, dated Thu Jul 24 2025 00:00:00, and it's all part of libpgf. mwah, go decode something iconic, periodt πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from