OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::os Namespace Reference

Functions

OT_SYS_API_EXPORT unsigned long long getTotalPhysicalMemory (void)
 Returns the total physical memory of the current machine in bytes.
 
OT_SYS_API_EXPORT unsigned long long getAvailablePhysicalMemory (void)
 Returns the available physical memory of the current machine in bytes.
 
OT_SYS_API_EXPORT unsigned long long getTotalVirtualMemory (void)
 Returns the total virtual memory of the current machine in bytes.
 
OT_SYS_API_EXPORT unsigned long long getAvailableVirtualMemory (void)
 Returns the available virtual memory of the current machine in bytes.
 
OT_SYS_API_EXPORT char * getEnvironmentVariable (const char *_variableName)
 
OT_SYS_API_EXPORT std::string getExecutablePath ()
 Returns the path of the current executable.
 

Function Documentation

◆ getAvailablePhysicalMemory()

unsigned long long ot::os::getAvailablePhysicalMemory ( void )

Returns the available physical memory of the current machine in bytes.

◆ getAvailableVirtualMemory()

unsigned long long ot::os::getAvailableVirtualMemory ( void )

Returns the available virtual memory of the current machine in bytes.

◆ getEnvironmentVariable()

char * ot::os::getEnvironmentVariable ( const char * _variableName)
Parameters
_variableName
Returns
Null if variable is not found

◆ getExecutablePath()

OT_SYS_API_EXPORT std::string ot::os::getExecutablePath ( )

Returns the path of the current executable.

◆ getTotalPhysicalMemory()

unsigned long long ot::os::getTotalPhysicalMemory ( void )

Returns the total physical memory of the current machine in bytes.

◆ getTotalVirtualMemory()

unsigned long long ot::os::getTotalVirtualMemory ( void )

Returns the total virtual memory of the current machine in bytes.