pack_igetw(3alleg4)
π pack_igetw π
okay bestie, so this is one of those little Allegro byte-muncher functions, and it lives in the Allegro manual for the Allegro game programming library. that's the vibe. π
β¨ NAME β¨
pack_igetw β literally just like pack_getc(), but it's out here reading 16-bit Intel byte ordering words instead. Allegro game programming library things. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int pack_igetw(PACKFILE *f);
π¦ DESCRIPTION π¦
so. like pack_getc, right? same energy, same bestie behavior. but instead of grabbing a single byte, pack_igetw reads a 16-bit word out of a file. π«Ά
and it does it using Intel byte ordering, which is:
- least significant byte first π
- a.k.a. little-endian β¨
that's it, that's the whole function. no cap. it's giving "small but essential" and honestly? iconic. π
π SEE ALSO π
pack_getc(3alleg4)β the sibling, the blueprint, the reason this whole thing exists π
anyway bestie, this page came to you straight from Allegro, version 4.4.3, and it's pack_igetw(3alleg4) forever and ever. mwah. π
π¦ 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