MCPcopy Create free account
hub / github.com/Compiled-Code/eac-mapper / is_valid

Function is_valid

dependencies/vdm/util/util.hpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13{
14 inline std::map<std::uintptr_t, std::size_t> pmem_ranges{};
15 __forceinline auto is_valid(std::uintptr_t addr) -> bool
16 {
17 for (auto range : pmem_ranges)
18 if (addr >= range.first && addr <= range.first + range.second)
19 return true;
20
21 return false;
22 }
23
24#pragma pack (push, 1)
25 struct PhysicalMemoryPage//CM_PARTIAL_RESOURCE_DESCRIPTOR

Callers 2

read_physFunction · 0.85
write_physFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected