27 #ifndef ZYDIS_DECODER_H
28 #define ZYDIS_DECODER_H
128 const void* buffer,
size_t bufferLen, uint64_t instructionPointer,
Includes and defines some default datatypes.
Defines the basic ZydisDecodedInstruction and ZydisDecodedOperand structs.
struct ZydisDecoder_ ZydisDecoder
Defines the ZydisDecoder struct.
ZydisDecodeGranularities
Decoder modes defining how granular the instruction should be decoded.
Definition: Decoder.h:52
@ ZYDIS_DECODE_GRANULARITY_FULL
Full physical and semantic instruction-decoding.
Definition: Decoder.h:71
@ ZYDIS_DECODE_GRANULARITY_MINIMAL
Minimal instruction decoding without semantic analysis.
Definition: Decoder.h:67
@ ZYDIS_DECODE_GRANULARITY_DEFAULT
Defaults to ZYDIS_DECODE_GRANULARITY_FULL.
Definition: Decoder.h:56
ZYDIS_EXPORT ZydisStatus ZydisDecoderInitEx(ZydisDecoder *decoder, ZydisMachineMode machineMode, ZydisAddressWidth addressWidth, ZydisDecodeGranularity decodeGranularity)
Initializes the given ZydisDecoder instance.
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.
uint32_t ZydisDecodeGranularity
Defines the ZydisDecodeGranularity datatype.
Definition: Decoder.h:46
ZYDIS_EXPORT ZydisStatus ZydisDecoderInit(ZydisDecoder *decoder, ZydisMachineMode machineMode, ZydisAddressWidth addressWidth)
Initializes the given ZydisDecoder instance.
uint8_t ZydisMachineMode
Defines the ZydisMachineMode datatype.
Definition: SharedTypes.h:65
uint8_t ZydisAddressWidth
Defines the ZydisAddressWidth datatype.
Definition: SharedTypes.h:106
uint32_t ZydisStatus
Defines the ZydisStatus datatype.
Definition: Status.h:43
Defines the ZydisDecodedInstruction struct.
Definition: DecoderTypes.h:676
Defines the ZydisDecoder struct.
Definition: Decoder.h:78
ZydisAddressWidth addressWidth
Definition: Decoder.h:80
ZydisDecodeGranularity decodeGranularity
Definition: Decoder.h:81
ZydisMachineMode machineMode
Definition: Decoder.h:79