diff options
Diffstat (limited to 'include/winapi')
-rw-r--r-- | include/winapi/debug/address.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/winapi/debug/address.hpp b/include/winapi/debug/address.hpp index 1370ed4..e5db42d 100644 --- a/include/winapi/debug/address.hpp +++ b/include/winapi/debug/address.hpp @@ -14,21 +14,24 @@ namespace winapi { typedef DWORD64 Address; -inline std::string format_address(Address address) { +namespace address { + +inline std::string format(Address address) { std::ostringstream oss; oss << std::hex << std::showbase << address; return oss.str(); } -inline std::string format_address(void* address) { - return format_address(reinterpret_cast<Address>(address)); +inline std::string format(void* address) { + return format(reinterpret_cast<Address>(address)); } -inline bool parse_address(Address& dest, const std::string& src) { +inline bool parse(Address& dest, const std::string& src) { std::istringstream iss{src}; iss >> std::hex; char c; return iss >> dest && !iss.get(c); } +} // namespace address } // namespace winapi |