sdlGetStorageSpaceRemaining function

int sdlGetStorageSpaceRemaining(
  1. Pointer<SdlStorage> storage
)

Queries the remaining space in a storage container.

\param storage a storage container to query. \returns the amount of remaining space, in bytes.

\since This function is available since SDL 3.1.3.

\sa SDL_StorageReady \sa SDL_WriteStorageFile

extern SDL_DECLSPEC Uint64 SDLCALL SDL_GetStorageSpaceRemaining(SDL_Storage *storage)

Implementation

int sdlGetStorageSpaceRemaining(Pointer<SdlStorage> storage) {
  final sdlGetStorageSpaceRemainingLookupFunction = libSdl3.lookupFunction<
      Uint64 Function(Pointer<SdlStorage> storage),
      int Function(
          Pointer<SdlStorage> storage)>('SDL_GetStorageSpaceRemaining');
  return sdlGetStorageSpaceRemainingLookupFunction(storage);
}