Go to the source code of this file.
◆ ZydisDecodeGranularity
Defines the ZydisDecodeGranularity
datatype.
◆ ZydisDecoder
Defines the ZydisDecoder
struct.
◆ ZydisDecodeGranularities
Decoder modes defining how granular the instruction should be decoded.
Enumerator |
---|
ZYDIS_DECODE_GRANULARITY_DEFAULT | Defaults to ZYDIS_DECODE_GRANULARITY_FULL .
|
ZYDIS_DECODE_GRANULARITY_MINIMAL | Minimal instruction decoding without semantic analysis.
This mode provides access to the mnemonic, the instruction-length, the effective operand-size, the effective address-width, some attributes (e.g. ZYDIS_ATTRIB_IS_RELATIVE ) and all of the information in the raw field of the ZydisDecodedInstruction struct.
Operands, most attributes and other specific information (like AVX info) are not accessible in this mode.
|
ZYDIS_DECODE_GRANULARITY_FULL | Full physical and semantic instruction-decoding.
|
◆ ZydisDecoderDecodeBuffer()
Decodes the instruction in the given input buffer
.
- Parameters
-
decoder | A pointer to the ZydisDecoder instance. |
buffer | A pointer to the input buffer. |
bufferLen | The length of the input buffer. |
instructionPointer | The instruction-pointer. |
instruction | A pointer to the ZydisDecodedInstruction struct, that receives the details about the decoded instruction. |
- Returns
- A zydis status code.
◆ ZydisDecoderInit()
Initializes the given ZydisDecoder
instance.
- Parameters
-
decoder | A pointer to the ZydisDecoder instance. |
machineMode | The machine mode. |
addressWidth | The address width. |
- Returns
- A zydis status code.
◆ ZydisDecoderInitEx()
Initializes the given ZydisDecoder
instance.
- Parameters
-
decoder | A pointer to the ZydisDecoder instance. |
machineMode | The machine mode. |
addressWidth | The address width. |
decodeGranularity | The decode granularity. |
- Returns
- A zydis status code.