CPUImpl

class CPUImpl(parsedCPU: CPU) : CPU

Implements the CPU interface, providing the CPU architecture information.

This class extracts the CPU architecture from the provided CPU object, ensuring a null-safe value is used via the safeValue() method from the WebInfoItem interface.

Author

N7ghtm4r3

Parameters

parsedCPU

The CPU object containing the parsed CPU information, used to extract the architecture.

See also

Constructors

Link copied to clipboard
constructor(parsedCPU: CPU)

Properties

Link copied to clipboard
open override val architecture: String

architecture The architecture of the CPU (e.g., x86, ARM). This value is safely extracted from the provided parsedCPU object.

Functions

Link copied to clipboard
open fun String?.safeValue(): String

Method to use a null-safe value.