15static std::string_view
BaseName(std::string_view path)
17 const size_t slash = path.find_last_of(
"\\/");
18 return slash == std::string_view::npos ? path : path.substr(
slash + 1);
57 best = {
static_cast<const uint8_t*
>(
info.lpBaseOfDll),
info.SizeOfImage, std::string(path)};
66 module = std::move(best);
67 ranges.assign(1, ScanRange{
module.Base, module.Size});
bool FindModuleAndRanges(std::string_view fileName, Image &module, std::vector< ScanRange > &ranges)
static bool SameFileName(std::string_view left, std::string_view right)
static std::string ReadFile(const std::filesystem::path &path)
static std::string_view BaseName(std::string_view path)