MCPcopy Create free account
hub / github.com/avast/retdec / getFunctionByStartAddress

Method getFunctionByStartAddress

src/common/function.cpp:148–160  ·  view source on GitHub ↗

* @return Pointer to function or @c nullptr if not found. */

Source from the content-addressed store, hash-verified

146 * @return Pointer to function or @c nullptr if not found.
147 */
148const Function* FunctionContainer::getFunctionByStartAddress(
149 const retdec::common::Address& addr) const
150{
151 for (auto& elem : *this)
152 {
153 if (addr == elem.getStart())
154 {
155 return &elem;
156 }
157 }
158
159 return nullptr;
160}
161
162const Function* FunctionContainer::getFunctionByRealName(
163 const std::string& name) const

Callers 2

getConfigFunctionMethod · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64