Skip to main content

Module function

Module function 

Source
Expand description

Decoded function and instruction types.

0.6.0: Instruction now wraps a crate::disassembler::DecodedInsn enum (x86 or AArch64). The 0.5.x pub iced: iced_x86::Instruction reach-through field is gone — callers that previously did ins.iced.mnemonic() use one of the typed accessors below (ins.mnemonic_enum() / ins.op_kind(i) / …). The accessors that make sense only on x86 carry an Option<…> return; arch-agnostic helpers (is_call, is_jmp, is_ret) dispatch internally.

As of 0.4.0 Instruction is fully zero-copy: only the fully-decoded per-arch carrier is stored per instruction, plus offset + length. The mnemonic / operands strings are formatted on demand via Instruction::format_mnemonic / Instruction::format_operands, and the raw bytes are looked up via Instruction::bytes_in against a &BinaryInfo.

The capstone-compatible IntelFormatter lives in crate::disassembler::capstone_compat_formatter — re-exported here for downstream API compatibility.

Re-exports§

pub use crate::disassembler::capstone_compat_formatter;

Structs§

Function
Instruction
A single decoded instruction. Wraps a DecodedInsn enum so the per-instruction surface is identical for x86 and AArch64.

Functions§

is_printable_ascii
is_printable_utf16le