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

Method GetReasonsForBaseAddress

basedetection.cpp:79–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78
79std::vector<BNBaseAddressDetectionReason> BaseAddressDetection::GetReasonsForBaseAddress(uint64_t baseAddress)
80{
81 std::vector<BNBaseAddressDetectionReason> result;
82 size_t count;
83 BNBaseAddressDetectionReason *reasons = BNGetBaseAddressDetectionReasons(m_object, baseAddress, &count);
84 if (!reasons)
85 return result;
86
87 for (size_t i = 0; i < count; i++)
88 result.push_back(reasons[i]);
89
90 BNFreeBaseAddressDetectionReasons(reasons);
91 return result;
92}

Callers 1

runMethod · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected