logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetStorageFileSize - Query the size of a file within a storage container.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

storage
              a storage container to query.

       path   the relative path of the file to query.

       length a pointer to be filled with the file's length.

Header File

       Defined in SDL3/SDL_storage.h

Name

       SDL_GetStorageFileSize - Query the size of a file within a storage container.

Return Value

       Returns true if the file could be queried or false on failure; call

       SDL_GetError () for more information.

See Also

(3), SDL_ReadStorageFile(3), (3), SDL_StorageReady(3)

Simple Directmedia Layer                           SDL 3.2.10                          SDL_GetStorageFileSize(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_GetStorageFileSize(SDL_Storage*storage,constchar*path,Uint64*length);

See Also