pub const fn encode_nop_with_length(length: u8) -> EncodedX86_64Instruction
Expand description
No operation for given length. It is guaranteed that the returned
value is of the passed length
.
Uses Intel’s recommended multi-byte NOP sequences. Note that
encode_nop_with_length(1)
call
is equivalent to encode_nop()
,
although slightly less efficient.
§Panics
The caller must ensure that length
is in the 1..=9
range.
Otherwise the function panics.