-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemoryDump.hpp
More file actions
37 lines (31 loc) · 773 Bytes
/
MemoryDump.hpp
File metadata and controls
37 lines (31 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include<string>
namespace MemoryCompare
{
class MemDump
{
private:
std::string _memDump;
uint64_t _baseAddress = 0;
uint64_t _size = 0;
std::wstring _path;
public:
MemDump(void* baseLocation, const uint64_t baseAddress, const uint64_t size);
MemDump(const std::wstring& path, const uint64_t baseAddress, const uint64_t size = 0, const uint64_t startReading = 0);
MemDump() {}
void operator=(const MemDump& other)
{
_memDump = other._memDump;
_baseAddress = other._baseAddress;
_size = other._size;
_path = other._path;
}
template<typename dataType> dataType GetDump()
{
return reinterpret_cast<dataType>(_memDump.data());
}
uint64_t GetBaseAddress();
uint64_t GetSize();
std::wstring GetPath();
};
}