sdlGetSystemRam function

int sdlGetSystemRam()

Get the amount of RAM configured in the system.

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

\since This function is available since SDL 2.0.1.

extern DECLSPEC int SDLCALL SDL_GetSystemRAM(void)

Implementation

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