aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/utils
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 01:21:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 01:21:58 +0300
commitde5c928779d69e22221d08c21ce3b5455157004e (patch)
tree50ac3106f4fd91c5c900540596bed8b1c5db807d /include/pdb/utils
parentuse error reporting from winapi-common (diff)
downloadwinapi-debug-de5c928779d69e22221d08c21ce3b5455157004e.tar.gz
winapi-debug-de5c928779d69e22221d08c21ce3b5455157004e.zip
export pdb::file to winapi-common's File
Diffstat (limited to 'include/pdb/utils')
-rw-r--r--include/pdb/utils/file.hpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/include/pdb/utils/file.hpp b/include/pdb/utils/file.hpp
deleted file mode 100644
index 44d3d5f..0000000
--- a/include/pdb/utils/file.hpp
+++ /dev/null
@@ -1,52 +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 <boost/functional/hash.hpp>
-
-#include <windows.h>
-
-#include <cstddef>
-#include <cstring>
-#include <functional>
-#include <string>
-
-namespace pdb {
-namespace file {
-
-std::size_t get_size(const std::string&);
-
-inline bool operator==(const FILE_ID_128& a, const FILE_ID_128& b) {
- return 0 == std::memcmp(a.Identifier, b.Identifier, sizeof(a.Identifier));
-}
-
-struct ID {
- const FILE_ID_INFO raw;
-
- bool operator==(const ID& other) const {
- return raw.VolumeSerialNumber == other.raw.VolumeSerialNumber &&
- raw.FileId == other.raw.FileId;
- }
-};
-
-ID query_id(const std::string&);
-
-} // namespace file
-} // namespace pdb
-
-namespace std {
-
-template <>
-struct hash<pdb::file::ID> {
- std::size_t operator()(const pdb::file::ID& id) const {
- std::size_t seed = 0;
- boost::hash_combine(seed, id.raw.VolumeSerialNumber);
- boost::hash_combine(seed, id.raw.FileId.Identifier);
- return seed;
- }
-};
-
-} // namespace std