Zydis
v2.0.0-alpha2
|
Functions for decoding instructions. More...
#include <Zydis/CommonTypes.h>
#include <Zydis/DecoderTypes.h>
#include <Zydis/Defines.h>
#include <Zydis/Status.h>
Go to the source code of this file.
Data Structures | |
struct | ZydisDecoder_ |
Defines the ZydisDecoder struct. More... | |
Typedefs | |
typedef uint8_t | ZydisDecodeGranularity |
Defines the ZydisDecodeGranularity datatype. More... | |
typedef struct ZydisDecoder_ | ZydisDecoder |
Defines the ZydisDecoder struct. More... | |
Enumerations | |
enum | ZydisDecodeGranularities { ZYDIS_DECODE_GRANULARITY_DEFAULT , ZYDIS_DECODE_GRANULARITY_MINIMAL , ZYDIS_DECODE_GRANULARITY_FULL , ZYDIS_DECODE_GRANULARITY_MAX_VALUE = ZYDIS_DECODE_GRANULARITY_FULL } |
Decoder modes defining how granular the instruction should be decoded. More... | |
Functions | |
ZYDIS_EXPORT ZydisStatus | ZydisDecoderInit (ZydisDecoder *decoder, ZydisMachineMode machineMode, ZydisAddressWidth addressWidth) |
Initializes the given ZydisDecoder instance. More... | |
ZYDIS_EXPORT ZydisStatus | ZydisDecoderInitEx (ZydisDecoder *decoder, ZydisMachineMode machineMode, ZydisAddressWidth addressWidth, ZydisDecodeGranularity granularity) |
Initializes the given ZydisDecoder instance. More... | |
ZYDIS_EXPORT ZydisStatus | ZydisDecoderDecodeBuffer (const ZydisDecoder *decoder, const void *buffer, size_t bufferLen, uint64_t instructionPointer, ZydisDecodedInstruction *instruction) |
Decodes the instruction in the given input buffer . More... | |
Functions for decoding instructions.
typedef uint8_t ZydisDecodeGranularity |
Defines the ZydisDecodeGranularity
datatype.
typedef struct ZydisDecoder_ ZydisDecoder |
Defines the ZydisDecoder
struct.
Decoder modes defining how granular the instruction should be decoded.
ZYDIS_EXPORT ZydisStatus ZydisDecoderDecodeBuffer | ( | const ZydisDecoder * | decoder, |
const void * | buffer, | ||
size_t | bufferLen, | ||
uint64_t | instructionPointer, | ||
ZydisDecodedInstruction * | instruction | ||
) |
Decodes the instruction in the given input buffer
.
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. |
ZYDIS_EXPORT ZydisStatus ZydisDecoderInit | ( | ZydisDecoder * | decoder, |
ZydisMachineMode | machineMode, | ||
ZydisAddressWidth | addressWidth | ||
) |
Initializes the given ZydisDecoder
instance.
decoder | A pointer to the ZydisDecoder instance. |
machineMode | The machine mode. |
addressWidth | The address width. |
ZYDIS_EXPORT ZydisStatus ZydisDecoderInitEx | ( | ZydisDecoder * | decoder, |
ZydisMachineMode | machineMode, | ||
ZydisAddressWidth | addressWidth, | ||
ZydisDecodeGranularity | granularity | ||
) |
Initializes the given ZydisDecoder
instance.
decoder | A pointer to the ZydisDecoder instance. |
machineMode | The machine mode. |
addressWidth | The address width. |
granularity | The decode granularity. |