aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/address.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/pdb/address.hpp')
-rw-r--r--include/pdb/address.hpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/include/pdb/address.hpp b/include/pdb/address.hpp
deleted file mode 100644
index 3d7acd6..0000000
--- a/include/pdb/address.hpp
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2017 Egor Tensin <Egor.Tensin@gmail.com>
-// This file is part of the "winapi-debug" project.
-// For details, see https://github.com/egor-tensin/winapi-debug.
-// Distributed under the MIT License.
-
-#pragma once
-
-#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();
-}
-
-inline std::string format_address(void* address) {
- return format_address(reinterpret_cast<Address>(address));
-}
-
-inline bool parse_address(Address& dest, const std::string& src) {
- std::istringstream iss{src};
- iss >> std::hex;
- char c;
- return iss >> dest && !iss.get(c);
-}
-
-} // namespace pdb