Skip to content
FutureBlitz

    Install

    Import std.os.system

    std.os.system

    System, what the program knows of the machine it runs on: the platform and architecture it was built for, how many threads can run at once, the memory, and the machine's and user's names.

    std/os/system.fb

    Types

    Platform enum

    Public Enum Platform

    The OSes a program is built for.

    std/os/system.fb, line 16

    • WINDOWS enum member #

      Windows.

    • LINUX enum member #

      Linux.

    • MACOS enum member #

      macOS.

    Arch enum

    Public Enum Arch

    The processors a program is built for, each 64-bit.

    std/os/system.fb, line 26

    • X64 enum member #

      x86-64.

    • ARM64 enum member #

      AArch64.

    System struct

    Public Struct System

    System's Static Properties.

    std/os/system.fb, line 34

    • Public Static Property Platform: Platform property #

      The OS the program was built for, which it runs on.

    • Public Static Property Arch: Arch property #

      The processor the program was built for, which it runs on, or emulates.

    • Public Static Property CpuCount: Int property #

      How many threads can run at once: the processors the OS lets the program use, 1 or more.

    • Public Static Property TotalMemory: Int64 property #

      The machine's memory, in bytes.

    • Public Static Property Hostname: String? property #

      The machine's name on its network, or Null when the OS doesn't say.

    • Public Static Property UserName: String? property #

      The name of the user the program runs as, or Null when the OS doesn't say.

    Report an issue with this page or with FutureBlitz on GitHub.