diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-24 18:44:37 -0700 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-24 18:44:37 -0700 |
commit | 2473736979b829e09130a7261b38eb8c1367a06d (patch) | |
tree | a8fd86b1a464a96420bc7f4cf1028d0fb2d01b41 /WitnessRandomizer/Memory.h | |
parent | 922dbb03a50a54f3e5ae9efaec3b4759cd701c3e (diff) | |
download | witness-tutorializer-2473736979b829e09130a7261b38eb8c1367a06d.tar.gz witness-tutorializer-2473736979b829e09130a7261b38eb8c1367a06d.tar.bz2 witness-tutorializer-2473736979b829e09130a7261b38eb8c1367a06d.zip |
Perf: Cache memory offsets
Diffstat (limited to 'WitnessRandomizer/Memory.h')
-rw-r--r-- | WitnessRandomizer/Memory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WitnessRandomizer/Memory.h b/WitnessRandomizer/Memory.h index 6882c9c..dc92349 100644 --- a/WitnessRandomizer/Memory.h +++ b/WitnessRandomizer/Memory.h | |||
@@ -40,6 +40,8 @@ private: | |||
40 | void ThrowError(); | 40 | void ThrowError(); |
41 | 41 | ||
42 | uintptr_t ComputeOffset(std::vector<int> offsets); | 42 | uintptr_t ComputeOffset(std::vector<int> offsets); |
43 | |||
44 | std::map<std::vector<int>, uintptr_t> _computedOffsets; | ||
43 | uintptr_t _baseAddress; | 45 | uintptr_t _baseAddress; |
44 | HANDLE _handle; | 46 | HANDLE _handle; |
45 | }; \ No newline at end of file | 47 | }; \ No newline at end of file |