#[repr(u8)]pub enum DecodeError {
Show 14 variants
TooShort = 1,
TooLong = 2,
Invalid = 3,
InvalidMode = 4,
BadRegister = 5,
BadLockPrefix = 6,
BadLegacyPrefix = 7,
BadRexPrefix = 8,
BadMap = 9,
BadEvexVPrime = 10,
BadEvexZeroingWithoutMask = 11,
BadEvexLength = 12,
GatherRegisters = 13,
BadRegisterMatch = 14,
}Expand description
Why bytes do not decode to an instruction. The variants follow XED’s
xed_error_enum_t.
Variants§
TooShort = 1
The bytes end before the instruction does.
TooLong = 2
The instruction would be longer than 15 bytes.
Invalid = 3
No instruction has this encoding.
InvalidMode = 4
The instruction does not exist in the decoding mode.
BadRegister = 5
A register field encodes no valid register.
BadLockPrefix = 6
LOCK on an instruction that does not allow it.
BadLegacyPrefix = 7
66, F2 or F3 where none is allowed (e.g. before VEX).
BadRexPrefix = 8
REX where none is allowed (e.g. before VEX or REX2).
BadMap = 9
An opcode map that does not exist.
BadEvexVPrime = 10
EVEX.V' is 0 outside 64-bit mode.
BadEvexZeroingWithoutMask = 11
EVEX.z is set without a mask register.
BadEvexLength = 12
EVEX.L'L is 3 without embedded rounding.
GatherRegisters = 13
An AVX2 gather’s index, destination and mask registers are not all different.
BadRegisterMatch = 14
Registers that must differ are the same.
Implementations§
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
impl Copy for DecodeError
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
impl Eq for DecodeError
Source§impl Error for DecodeError
impl Error for DecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()