32 #ifndef ZYDIS_SEGMENT_H 33 #define ZYDIS_SEGMENT_H 35 #include <Zycore/Defines.h> 57 #define ZYDIS_MAX_INSTRUCTION_SEGMENT_COUNT 9 70 ZYDIS_INSTR_SEGMENT_NONE,
149 } segments[ZYDIS_MAX_INSTRUCTION_SEGMENT_COUNT];
ZyanU8 offset
The offset of the segment relative to the start of the instruction (in bytes).
Definition: Segment.h:144
Defines the ZydisInstructionSegments struct.
Definition: Segment.h:129
Information about a decoded instruction.
Definition: DecoderTypes.h:1237
The opcode bytes.
Definition: Segment.h:98
The legacy prefixes (including ignored REX prefixes).
Definition: Segment.h:74
ZyanU8 size
The size of the segment, in bytes.
Definition: Segment.h:148
ZYDIS_EXPORT ZyanStatus ZydisGetInstructionSegments(const ZydisDecodedInstruction *instruction, ZydisInstructionSegments *segments)
Returns offsets and sizes of all logical instruction segments (e.g.
ZydisInstructionSegment type
The type of the segment.
Definition: Segment.h:140
#define ZYDIS_EXPORT
Symbol is exported in shared library builds.
Definition: Defines.h:67
The MVEX prefix bytes.
Definition: Segment.h:94
The effective REX prefix byte.
Definition: Segment.h:78
The XOP prefix bytes.
Definition: Segment.h:82
The VEX prefix bytes.
Definition: Segment.h:86
ZyanU8 count
The number of logical instruction segments.
Definition: Segment.h:134
The SIB byte.
Definition: Segment.h:106
The minimum number of bits required to represent all values of this enum.
Definition: Segment.h:123
Maximum value of this enum.
Definition: Segment.h:119
Defines the basic ZydisDecodedInstruction and ZydisDecodedOperand structs.
ZydisInstructionSegment_
Defines the ZydisInstructionSegment struct.
Definition: Segment.h:68
enum ZydisInstructionSegment_ ZydisInstructionSegment
Defines the ZydisInstructionSegment struct.
The displacement bytes.
Definition: Segment.h:110
The EVEX prefix bytes.
Definition: Segment.h:90
struct ZydisInstructionSegments_ ZydisInstructionSegments
Defines the ZydisInstructionSegments struct.
The immediate bytes.
Definition: Segment.h:114
The ModRM byte.
Definition: Segment.h:102
Status code definitions and check macros.