DATAFILE(3alleg4)

πŸ’– DATAFILE πŸ’–

okay bestie, welcome to the Allegro manual β€” this is the DATAFILE page and it's literally the little struct that holds a whole datafile in memory. slay.


✨ NAME ✨

DATAFILE β€” stores an Allegro datafile in memory. that's it, that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

#include <allegro.h>

typedef struct DATAFILE

πŸŽ€ DESCRIPTION πŸŽ€

okay so this struct has four members and they are all doing their own little thing:

  • void *dat; β€” pointer to the actual data ✨
  • int type; β€” type of the data πŸ’…
  • long size; β€” size of the data in bytes πŸ“
  • void *prop; β€” list of object properties 🏷️

and if you wanna know how to actually obtain this structure or use it, go read the chapter "Datafile routines", section "Using datafiles" β€” it's all explained there, iykyk πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘


ok that's the whole page, no cap. go forth and load those datafiles πŸ’–

Allegro, version 4.4.3 β€” DATAFILE(3alleg4), signing off πŸ¦‹βœ¨ ily, drink some water πŸ“