aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/address.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-05-19 05:31:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-05-19 05:31:58 +0300
commita8d767a99e4c09975503e092ee4674962b27c3ce (patch)
tree0d341e027a980981e8d719133f785d1eb5dbd702 /include/pdb/address.hpp
parentadd displacement to symbols (diff)
downloadwinapi-debug-a8d767a99e4c09975503e092ee4674962b27c3ce.tar.gz
winapi-debug-a8d767a99e4c09975503e092ee4674962b27c3ce.zip
refactoring
Diffstat (limited to 'include/pdb/address.hpp')
-rw-r--r--include/pdb/address.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/pdb/address.hpp b/include/pdb/address.hpp
index 53b25e8..33e0ac3 100644
--- a/include/pdb/address.hpp
+++ b/include/pdb/address.hpp
@@ -7,7 +7,17 @@
#include <Windows.h>
+#include <sstream>
+#include <string>
+
namespace pdb
{
typedef DWORD64 Address;
+
+ inline std::string format_address(Address address)
+ {
+ std::ostringstream oss;
+ oss << std::hex << std::showbase << address;
+ return oss.str();
+ }
}