FixNative Documentation

Back to summary

import "native/native";

System class

Provides information about the system.

Properties

static function get_type(): Integer
Returns the operating system type. The possible values are:
SYSTEM_WINDOWS - Windows
SYSTEM_LINUX - Linux
SYSTEM_MACOS - Mac OS
SYSTEM_HAIKU - Haiku
SYSTEM_SYMBIAN - Symbian
SYSTEM_WEB - web browser
SYSTEM_WASI - WASI
static function get_arch(): Integer
Returns the CPU architecture. The possible values are:
ARCH_X86 - Intel x86 32-bit
ARCH_X86_64 - Intel x86 64-bit
ARCH_ARM32 - ARM 32-bit
ARCH_WASM - WebAssembly
static function get_pointer_size(): Integer
Returns the pointer size in bytes (4 or 8).
static function get_nlong_size(): Integer
Returns the size of C's long type in bytes (4 or 8).
static function get_pointer_align(): Integer
Returns the alignment of the pointer type.
static function get_long_align(): Integer
Returns the alignment of the 64-bit integer type.
static function get_nlong_align(): Integer
Returns the alignment of C's long type.
static function get_double_align(): Integer
Returns the alignment of the 64-bit float type.