Identity and capacity of this machine. More...
Enumerations | |
| enum class | Error { Success = 0 , Failed } |
| Host enumerators. More... | |
Functions | |
| StormByte::Error::Fault | LastError () noexcept |
| Last Host error on this thread. | |
| bool | Name (StormByte::String::String &name) |
| Host name of this machine. | |
| StormByte::String::String | Architecture () |
| Instruction-set name of this machine. | |
| StormByte::String::String | CPU () |
| Processor brand string. | |
| StormByte::String::String | OS () |
| Operating system brand and version. | |
| StormByte::String::String | Kernel () |
| Kernel identification. | |
| StormByte::Size | PageSize () |
| System page size. | |
| StormByte::Size | PhysicalMemory () |
| Installed physical memory. | |
| StormByte::Size | AvailableMemory () |
| Currently available physical memory. | |
| unsigned | LogicalProcessors () noexcept |
| Logical processor count. | |
| unsigned | Bitness () noexcept |
| Pointer width of this process. | |
Identity and capacity of this machine.
Name returns true on success. Architecture, CPU, OS, Kernel, PageSize, PhysicalMemory and AvailableMemory return a value and update LastError. On failure the string is empty or the Size is zero. LogicalProcessors and Bitness do not touch LastError.
|
strong |
Host enumerators.
Domain tag StormByte.System.Host. Zero is success.
| Enumerator | |
|---|---|
| Success | No error. |
| Failed | The platform call failed. |
| StormByte::String::String StormByte::System::Host::Architecture | ( | ) |
Instruction-set name of this machine.
x86_64, arm64, x86 or another platform token. Empty on failure. | StormByte::Size StormByte::System::Host::AvailableMemory | ( | ) |
Currently available physical memory.
|
noexcept |
Pointer width of this process.
32 or 64. | StormByte::String::String StormByte::System::Host::CPU | ( | ) |
Processor brand string.
| StormByte::String::String StormByte::System::Host::Kernel | ( | ) |
Kernel identification.
Linux 7.2.7 SMP PREEMPT_DYNAMIC, NT 10.0.26100 or Darwin 24.1.0. Empty on failure.
|
noexcept |
|
noexcept |
Logical processor count.
0 if unknown. | bool StormByte::System::Host::Name | ( | StormByte::String::String & | name | ) |
Host name of this machine.
| [out] | name | Owned UTF-8 text. Written only on success. |
| StormByte::String::String StormByte::System::Host::OS | ( | ) |
Operating system brand and version.
Gentoo 2.18, Windows 11 or macOS 15.1. Empty on failure. | StormByte::Size StormByte::System::Host::PageSize | ( | ) |
System page size.
| StormByte::Size StormByte::System::Host::PhysicalMemory | ( | ) |
Installed physical memory.