diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-29 01:33:39 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-29 01:34:04 +0300 |
commit | bc78e3308f8bf74a8935f9ef8fd28825d6b48c2f (patch) | |
tree | e496012c405316287ef67ebcfecf5f40d4a9a656 /include/winapi | |
parent | rename class Repo to PostMortem (diff) | |
download | winapi-debug-bc78e3308f8bf74a8935f9ef8fd28825d6b48c2f.tar.gz winapi-debug-bc78e3308f8bf74a8935f9ef8fd28825d6b48c2f.zip |
move _address functions to winapi::address
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 |