pub type CodecFactory = fn(arch_name: Option<&str>, e_machine: Option<u64>) -> Option<Box<dyn ArchCodec>>;Expand description
A codec factory: inspects an (arch_name, e_machine) pair and
returns a codec instance if it recognises the arch, else
None. arch_name is the lowercase friendly arch identifier
from the parsed @module block ("x86_64", "bpf", etc.);
e_machine is the numeric ELF machine type (EM_BPF = 247,
EM_SBF = 263, …) — useful for sub-arch dispatch (e.g.
distinguishing Linux eBPF from Solana SBF when both carry
arch = "bpf").