Provides system-level utility functions. More...
#include <system.h>
Static Public Member Functions | |
| static String | hostname () |
| Returns the hostname of the machine. | |
| static constexpr bool | isLittleEndian () |
| Returns true if the host byte order is little-endian. | |
| static constexpr bool | isBigEndian () |
| Returns true if the host byte order is big-endian. | |
| template<typename T > | |
| static void | swapEndian (T &value) |
| Reverses the byte order of an arithmetic value in place. | |
| template<typename T , bool ValueIsBigEndian> | |
| static void | makeNativeEndian (T &value) |
| Converts a value to native endian if its byte order differs. | |
| static String | demangleSymbol (const char *symbol, bool useCache=true) |
| Demangles a C++ symbol name into a human-readable form. | |
Provides system-level utility functions.
Static utility class for querying host information, byte-order helpers, and C++ symbol demangling.
Demangles a C++ symbol name into a human-readable form.
| symbol | The mangled symbol name. |
| useCache | If true, cache the result for faster repeated lookups. |
Returns the hostname of the machine.
Returns true if the host byte order is big-endian.
Returns true if the host byte order is little-endian.
Converts a value to native endian if its byte order differs.
| T | An arithmetic type. |
| ValueIsBigEndian | true if the value is stored in big-endian order. |
| value | The value to convert in place. |
Reverses the byte order of an arithmetic value in place.
| T | An arithmetic type (integer or floating-point). |
| value | The value whose bytes will be swapped. |