sdlGetStorageSpaceRemaining function storage

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.2.0.

\sa SDL_StorageReady \sa SDL_WriteStorageFile

extern SDL_DECLSPEC Uint64 SDLCALL SDL_GetStorageSpaceRemaining(SDL_Storage *storage)

Implementation

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