system_ram.h raw
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-present The Limenka developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6 #ifndef LIMENKA_COMMON_SYSTEM_RAM_H
7 #define LIMENKA_COMMON_SYSTEM_RAM_H
8
9 #include <cstddef>
10 #include <optional>
11
12 /**
13 * Return the total RAM available on the current system, if detectable.
14 */
15 std::optional<size_t> TryGetTotalRam();
16
17 #endif // LIMENKA_COMMON_SYSTEM_RAM_H
18