pack_mgetw(3alleg4)
β¨ pack_mgetw β the Allegro manual, bestie edition π
okay so you're in the 3alleg4 section of the Allegro manual and you clicked on pack_mgetw?? taste. immaculate taste actually. this is from the Allegro game programming library btw, just so we're clear on the vibe π
πΈ NAME πΈ
pack_mgetw β it's literally like pack_getc(), except it works with 16-bit Motorola byte ordering words. that's it, that's the whole thing. Allegro game programming library β¨
π¦ SYNOPSIS π¦
#include <allegro.h>
int pack_mgetw(PACKFILE *f);
π DESCRIPTION π
okay so picture pack_getc, right? iconic behavior. now imagine it but it reads a 16-bit word from a file, and it does it using Motorola byte ordering. that means the most significant byte comes first, a.k.a. big-endian, a.k.a. the way Motorola likes it. no cap. π«Ά
so yeah β same energy as pack_getc, just a chunky little 16-bit word and the bytes are flipped the other way. the way that big-endian just does that. ππ
π SEE ALSO π
pack_getc(3alleg4)β the sibling. the original. the blueprint. go read it, fr fr π
lowkey important: this page came straight out of the Allegro manual, pack_mgetw(3alleg4) section, and it's version 4.4.3 energy all day. slay, bestie, go read some bytes πβ¨π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms