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

Method GetSymbolsByName

binaryview.cpp:2995–3009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2993
2994
2995vector<Ref<Symbol>> BinaryView::GetSymbolsByName(const string& name, const NameSpace& nameSpace)
2996{
2997 size_t count;
2998 BNNameSpace ns = nameSpace.GetAPIObject();
2999 BNSymbol** syms = BNGetSymbolsByName(m_object, name.c_str(), &count, &ns);
3000 NameSpace::FreeAPIObject(&ns);
3001
3002 vector<Ref<Symbol>> result;
3003 result.reserve(count);
3004 for (size_t i = 0; i < count; i++)
3005 result.push_back(new Symbol(BNNewSymbolReference(syms[i])));
3006
3007 BNFreeSymbolList(syms, count);
3008 return result;
3009}
3010
3011
3012vector<Ref<Symbol>> BinaryView::GetSymbolsByRawName(const string& name, const NameSpace& nameSpace)

Callers 4

Calls 3

c_strMethod · 0.80
push_backMethod · 0.80
GetAPIObjectMethod · 0.45

Tested by

no test coverage detected