game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
MemoryInfo Struct Reference

System memory information. More...

#include <system_info_service.h>

Public Member Functions

bool hasEnoughRAM (uint64_t requiredMB) const
bool is16GBOrMore () const
bool is32GBOrMore () const
double usagePercent () const

Public Attributes

uint64_t availableMB = 0
uint64_t swapFreeMB = 0
uint64_t swapTotalMB = 0
uint64_t totalMB = 0

Detailed Description

System memory information.

Definition at line 200 of file system_info_service.h.

Member Function Documentation

◆ hasEnoughRAM()

bool MemoryInfo::hasEnoughRAM ( uint64_t requiredMB) const
inline

Definition at line 208 of file system_info_service.h.

References totalMB.

◆ is16GBOrMore()

bool MemoryInfo::is16GBOrMore ( ) const
inline

Definition at line 212 of file system_info_service.h.

References totalMB.

◆ is32GBOrMore()

bool MemoryInfo::is32GBOrMore ( ) const
inline

Definition at line 216 of file system_info_service.h.

References totalMB.

◆ usagePercent()

double MemoryInfo::usagePercent ( ) const
inline

Definition at line 220 of file system_info_service.h.

References availableMB, and totalMB.

Member Data Documentation

◆ availableMB

uint64_t MemoryInfo::availableMB = 0

Definition at line 203 of file system_info_service.h.

Referenced by usagePercent().

◆ swapFreeMB

uint64_t MemoryInfo::swapFreeMB = 0

Definition at line 205 of file system_info_service.h.

◆ swapTotalMB

uint64_t MemoryInfo::swapTotalMB = 0

Definition at line 204 of file system_info_service.h.

◆ totalMB

uint64_t MemoryInfo::totalMB = 0

Definition at line 202 of file system_info_service.h.

Referenced by hasEnoughRAM(), is16GBOrMore(), is32GBOrMore(), and usagePercent().


The documentation for this struct was generated from the following file: