Guest User

Untitled

a guest
Apr 4th, 2018
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #ifndef __CROSS_MAPPING_H__
  2. #define __CROSS_MAPPING_H__
  3. #include <unordered_map>
  4. #include <string>
  5.  
  6. #pragma once
  7.  
  8. typedef std::unordered_map<uint64_t, uint64_t> nMap;
  9. static std::vector<uint64_t> nativeFailedVec;
  10.  
  11. struct CrossMappingEntry
  12. {
  13. uint64_t first;
  14. uint64_t second;
  15. };
  16.  
  17. class CrossMapping
  18. {
  19. public:
  20. static void initNativeMap();
  21. static uint64_t MapNative(uint64_t inNative);
  22. static void dumpNativeMappingCache();
  23. static bool searchMap(nMap map, uint64_t inNative, uint64_t *outNative);
  24. };
  25.  
  26. #endif // __CROSS_MAPPING_H__
Add Comment
Please, Sign In to add comment