arch

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package arch defines CPU architecture identifiers shared by binary parsers and decoder adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arch

type Arch uint8

Arch is a format-neutral CPU architecture selector. Container loaders map ELF/Mach-O/PE machine fields onto these values; decoder packages consume them.

const (
	ArchUnknown Arch = iota
	ArchX86          // 32-bit x86
	ArchAMD64        // x86-64
	ArchARM64        // AArch64
	ArchRISCV64      // 64-bit RISC-V
	ArchARM          // 32-bit ARM (A32, little-endian)
	ArchPPC64        // 64-bit PowerPC, big-endian
	ArchPPC64LE      // 64-bit PowerPC, little-endian
	ArchS390X        // IBM Z (s390x, big-endian)
	ArchLoong64      // LoongArch 64 (little-endian)
	ArchPPC          // 32-bit PowerPC, big-endian
	ArchPPCLE        // 32-bit PowerPC, little-endian
)

func (Arch) String

func (a Arch) String() string

String returns the conventional name of the architecture.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL