ConstantOffsets¶
- class iced_x86.ConstantOffsets¶
Contains the offsets of the displacement and immediate.
Call
Decoder.get_constant_offsetsorEncoder.get_constant_offsetsto get the offsets of the constants after the instruction has been decoded/encoded.- copy()¶
Returns a copy of this instance.
- Returns:
A copy of this instance
- Return type:
- displacement_size¶
(
u32) Size in bytes of the displacement, or 0 if there’s no displacement- Type:
- has_displacement¶
TrueifConstantOffsets.displacement_offsetandConstantOffsets.displacement_sizeare valid- Type:
- has_immediate¶
TrueifConstantOffsets.immediate_offsetandConstantOffsets.immediate_sizeare valid- Type:
- has_immediate2¶
TrueifConstantOffsets.immediate_offset2andConstantOffsets.immediate_size2are valid- Type:
- immediate_offset¶
(
u32) The offset of the first immediate, if any.This field can be invalid even if the operand has an immediate if it’s an immediate that isn’t part of the instruction stream, eg.
SHL AL,1.- Type: