MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / AddStackVariableReferenceTokens

Method AddStackVariableReferenceTokens

architecture.cpp:2519–2539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2517
2518
2519void DisassemblyTextRenderer::AddStackVariableReferenceTokens(
2520 vector<InstructionTextToken>& tokens, const StackVariableReference& ref)
2521{
2522 BNStackVariableReference stackRef;
2523 stackRef.sourceOperand = ref.sourceOperand;
2524 stackRef.type = ref.type.GetValue() ? ref.type->GetObject() : nullptr;
2525 stackRef.typeConfidence = ref.type.GetConfidence();
2526 stackRef.name = BNAllocString(ref.name.c_str());
2527 stackRef.varIdentifier = ref.var.ToIdentifier();
2528 stackRef.referencedOffset = ref.referencedOffset;
2529 stackRef.size = ref.size;
2530
2531 size_t count = 0;
2532 BNInstructionTextToken* result =
2533 BNGetDisassemblyTextRendererStackVariableReferenceTokens(m_object, &stackRef, &count);
2534 BNFreeString(stackRef.name);
2535
2536 vector<InstructionTextToken> newTokens =
2537 InstructionTextToken::ConvertAndFreeInstructionTextTokenList(result, count);
2538 tokens.insert(tokens.end(), newTokens.begin(), newTokens.end());
2539}
2540
2541
2542bool DisassemblyTextRenderer::IsIntegerToken(BNInstructionTextTokenType type)

Callers

nothing calls this directly

Calls 8

GetConfidenceMethod · 0.80
c_strMethod · 0.80
GetValueMethod · 0.45
GetObjectMethod · 0.45
ToIdentifierMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected