Core class that represents the info we can get from hardware.
More...
Core class that represents the info we can get from hardware.
◆ Cpuid()
void Nz::HardwareInfo::Cpuid |
( |
UInt32 |
functionId, |
|
|
UInt32 |
subFunctionId, |
|
|
UInt32 |
result[4] |
|
) |
| |
|
static |
Generates the cpuid instruction (available on x86 & x64)
- Parameters
-
functionId | Information to retrieve |
subFunctionId | Additional code for information retrieval |
result | Supported features of the CPU |
◆ GetProcessorBrandString()
String Nz::HardwareInfo::GetProcessorBrandString |
( |
| ) |
|
|
static |
Gets the brand of the processor.
- Returns
- String of the brand
◆ GetProcessorCount()
unsigned int Nz::HardwareInfo::GetProcessorCount |
( |
| ) |
|
|
static |
Gets the number of threads.
- Returns
- Number of threads available on the CPU
◆ GetProcessorVendor()
ProcessorVendor Nz::HardwareInfo::GetProcessorVendor |
( |
| ) |
|
|
static |
Gets the processor vendor.
- Returns
- ProcessorVendor containing information the vendor
◆ GetProcessorVendorName()
String Nz::HardwareInfo::GetProcessorVendorName |
( |
| ) |
|
|
static |
Gets the vendor of the processor.
- Returns
- String of the vendor
◆ GetTotalMemory()
UInt64 Nz::HardwareInfo::GetTotalMemory |
( |
| ) |
|
|
static |
Gets the amount of total memory.
- Returns
- Number of total memory available
◆ HasCapability()
bool Nz::HardwareInfo::HasCapability |
( |
ProcessorCap |
capability | ) |
|
|
static |
Checks whether the processor owns the capacity to handle certain instructions.
- Returns
- true If instructions supported
◆ Initialize()
bool Nz::HardwareInfo::Initialize |
( |
| ) |
|
|
static |
Initializes the HardwareInfo class.
- Returns
- true if successful
◆ IsCpuidSupported()
bool Nz::HardwareInfo::IsCpuidSupported |
( |
| ) |
|
|
static |
Checks whether the instruction of cpuid is supported.
- Returns
- true if it the case
◆ IsInitialized()
bool Nz::HardwareInfo::IsInitialized |
( |
| ) |
|
|
static |
Checks whether the class HardwareInfo is initialized.
- Returns
- true if it is initialized
The documentation for this class was generated from the following files: