TryGetTotalRam

Return the total RAM available on the current system, if detectable.

Synopsis

Declared in <common/system.h>

std::optional<uint64_t>
TryGetTotalRam();

Return Value

The total RAM in bytes, or std::nullopt if it cannot be detected.