objc

Enumerations | Functions
NXArch.h File Reference

Architecture-related constants, types, and functions for Foundation. More...

Go to the source code of this file.

Enumerations

enum  NXEndian { NXUnknownEndian = 0, NXLittleEndian = 1, NXBigEndian = 2 }
 Enumeration representing different byte order (endianness) types. More...
 

Functions

uint8_t NXArchBits (void)
 Get the current architecture bits (32 or 64). More...
 
const char * NXArchOS (void)
 Get the current operating system name. More...
 
const char * NXArchProcessor (void)
 Get the current processor/CPU type. More...
 
NXEndian NXArchEndian (void)
 Get the current architecture endianness. More...
 
uint8_t NXArchNumCores (void)
 Get the number of CPU cores available on the current system. More...
 

Detailed Description

Architecture-related constants, types, and functions for Foundation.

This header provides utilities for determining system architecture properties such as bit width (32/64-bit) and byte order (endianness). These utilities include functions to retrieve the current architecture's bit width, endianness, and the number of CPU cores available. They are designed to help developers write portable code that adapts to different hardware architectures seamlessly.

Definition in file NXArch.h.