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

Function DemangleGeneric

demangle.cpp:7–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6namespace BinaryNinja {
7 bool DemangleGeneric(Ref<Architecture> arch, const std::string& name, Ref<Type>& outType,
8 QualifiedName& outVarName, Ref<BinaryView> view, bool simplify)
9 {
10 BNType* apiType;
11 BNQualifiedName apiVarName;
12 bool success = BNDemangleGeneric(
13 arch->m_object, name.c_str(), &apiType, &apiVarName, view ? view->m_object : nullptr, simplify);
14
15 if (!success)
16 return false;
17
18 if (apiType)
19 outType = new Type(apiType);
20 outVarName = QualifiedName::FromAPIObject(&apiVarName);
21 BNFreeQualifiedName(&apiVarName);
22 return true;
23 }
24
25 bool DemangleLLVM(const std::string& mangledName, QualifiedName& outVarName,
26 BinaryView* view)

Callers 7

ParseSymbolTableMethod · 0.85
DefineMachoSymbolMethod · 0.85
DefineElfSymbolMethod · 0.85
DemangledNameMethod · 0.85
DemangledNameMethod · 0.85
AddPESymbolMethod · 0.85
AddCOFFSymbolMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected