SDL_GetStorageFileSize(3)

πŸ’Ύ SDL_GetStorageFileSize πŸ’Ύ

okay bestie, welcome to the SDL3 FUNCTIONS corner of the group chat, where today's main character is SDL_GetStorageFileSize(3) πŸŽ€ no cap.


✨ NAME ✨

SDL_GetStorageFileSize β€” literally just asks a storage container "bestie, how big is this file?" πŸ“πŸ’–


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_storage.h>

bool SDL_GetStorageFileSize(SDL_Storage *storage, const char *path, Uint64 *length);

like… that's it. that's the whole vibe. ✨


πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • storage β€” the storage container you're interrogating πŸ•΅οΈβ€β™€οΈ. it's the thing getting queried.
  • path β€” the relative path of the file you're curious about πŸ—‚οΈ. relative, okay?? not absolute, we're not doing all that.
  • length β€” a pointer that gets filled in with the file's length πŸ“. it's giving "i'll tell you the number, you bring the place to put it."

πŸ’… RETURN VALUE πŸ’…

Returns true if the file could be queried, or false on failure 😭. and if it fails? call SDL_GetError() for more info, because she will spill the tea 🍡.


⭐ AVAILABILITY ⭐

this icon is available since SDL 3.2.0 🫢 so if you're on something older… girl. update. πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, they're the supporting cast and they ate πŸ”₯


mwah πŸ’œ this page came to you from <strong>Simple Directmedia Layer</strong>, rockin' <strong>SDL 3.4.18</strong>, and yeah the doc herself is literally named SDL_GetStorageFileSize(3) β€” periodt. go query some file sizes, you icon. πŸŽ€βœ¨

πŸ“¦ where this page comes from