aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/address.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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();
+ }
}