OpenTAP 9.25
API Reference
Static Public Member Functions | Properties | List of all members
OpenTap.Package.ArchitectureHelper Class Reference

Helper methods used to determine CpuArchitecture and compatibility between them. More...

Static Public Member Functions

static bool CompatibleWith (CpuArchitecture host, CpuArchitecture plugin)
 Returns true if a host OS can support a plugin with a given CPU architecture. More...
 
static bool PluginsCompatible (CpuArchitecture plugin1, CpuArchitecture plugin2)
 Returns true if the architectures of two plugins are compatible. More...
 

Properties

static CpuArchitecture HostArchitecture [get]
 Returns the CPU architecture of the host OS.
 
static CpuArchitectureGuessBaseArchitecture [get]
 Returns the architecture that the OpenTAP was compiled for, or the best guess it can give based on the current host architecture and process state.
 

Detailed Description

Helper methods used to determine CpuArchitecture and compatibility between them.

Member Function Documentation

◆ CompatibleWith()

static bool OpenTap.Package.ArchitectureHelper.CompatibleWith ( CpuArchitecture  host,
CpuArchitecture  plugin 
)
inlinestatic

Returns true if a host OS can support a plugin with a given CPU architecture.

Parameters
hostThe architecture of the host.
pluginThe architecture of the plugin.
Returns

◆ PluginsCompatible()

static bool OpenTap.Package.ArchitectureHelper.PluginsCompatible ( CpuArchitecture  plugin1,
CpuArchitecture  plugin2 
)
inlinestatic

Returns true if the architectures of two plugins are compatible.

Parameters
plugin1The architecture of one of the plugins.
plugin2The architecture of the other plugin.
Returns
True, if those two plugins can be used together.

OpenTAP 9.25 API built Tue Aug 6 2024 07:49:25