Skip to content

What does (ZydisFormatterBufferAppend do ? #494

Closed Answered by flobernd
440bx asked this question in Q&A
Discussion options

You must be logged in to vote

ZYAN_CHECK(ZydisFormatterBufferAppend(buffer, ZYDIS_TOKEN_SYMBOL));
ZyanString* string;
ZYAN_CHECK(ZydisFormatterBufferGetString(buffer, &string));
return ZyanStringAppendFormat(string, "<%s>", SYMBOL_TABLE[i].name);

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 using ZydisFormatterTokenize instead, you receive a list of ZydisFormatterToken in which each token has a type and a value (that c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@440bx
Comment options

Answer selected by 440bx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants