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

Method GetPreviousValidRange

genericrange.h:225–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 }
224
225 std::optional<std::pair<uint64_t, uint64_t>> GetPreviousValidRange(uint64_t addr, std::function<bool(const GenericRange<T>&)> predicate) const
226 {
227 auto itr = m_rangeMap.upper_bound(addr);
228 if (itr != m_rangeMap.begin())
229 --itr;
230
231 while (itr != m_rangeMap.begin())
232 {
233 if (predicate(itr->second))
234 return std::make_pair(itr->second.GetStart(), itr->second.GetEnd());
235 --itr;
236 }
237
238 return std::nullopt;
239 }
240 };
241
242#ifdef BINARYNINJACORE_LIBRARY

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
GetStartMethod · 0.45
GetEndMethod · 0.45

Tested by

no test coverage detected