Skip to main content

arm_nop_bytes

Function arm_nop_bytes 

Source
pub fn arm_nop_bytes(arch: Arch) -> Result<[u8; 4]>
Expand description

Return the architectural NOP encoding for arch.

§Errors

Returns Error::Parse if arch is not an ARM ISA. Callers should not invoke this for x86 — the x86 NOP is a single 0x90 byte and lives in crate::x86_encoding.