sdlGetSystemRam function

int sdlGetSystemRam()

Get the amount of RAM configured in the system.

\returns the amount of RAM configured in the system in MiB.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC int SDLCALL SDL_GetSystemRAM(void)

Implementation

int sdlGetSystemRam() {
  final sdlGetSystemRamLookupFunction = libSdl3
      .lookupFunction<Int32 Function(), int Function()>('SDL_GetSystemRAM');
  return sdlGetSystemRamLookupFunction();
}