37constexpr bool Rel32ReadInBounds(uintptr_t moduleBase,
size_t moduleSize, uintptr_t matchAddress,
38 int ripOffset)
noexcept
40 if (ripOffset < 0 || matchAddress < moduleBase)
45 const uintptr_t moduleEnd = moduleBase + moduleSize;
46 const uintptr_t site =
Rel32Site(matchAddress, ripOffset);
47 if (site < matchAddress || site >= moduleEnd)
52 return moduleEnd - site >=
static_cast<uintptr_t
>(
Rel32Size);