-
Hello, In the example program Formatter01, in the function ZydisFormatterPrintAddressAbsolute there is the following statement (line 89 or thereabouts):
after reading the documentation, I can't figure out what that statement does and why it's there. I commented it out and the program's behavior and output was unchanged. The questions are: what's that statement for ? what does it do ? and what are the consequences of not calling the function ? Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Lines 88 to 91 in ffde0f4 This basically marks the following string as a "symbol". There are different types of tokens: https://github.com/zyantific/zydis/blob/master/include/Zydis/FormatterBuffer.h#L55 When using the That functionality is e.g. used in |
Beta Was this translation helpful? Give feedback.
zydis/examples/Formatter01.c
Lines 88 to 91 in ffde0f4
This basically marks the following string as a "symbol". There are different types of tokens: https://github.com/zyantific/zydis/blob/master/include/Zydis/FormatterBuffer.h#L55
When using the
ZydisFormatterFormat
API, this does not make a difference. If you are usingZydisFormatterTokenize
instead, you receive a list of ZydisFormatterToken in which each token has a type and a value (that c…