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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms