refactor: migrate old code

This commit is contained in:
2024-08-02 17:04:37 +08:00
parent 6736bfbde5
commit 4ee11c29c9
18 changed files with 655 additions and 80 deletions

View File

@@ -2,5 +2,19 @@
#include "stdafx.hpp"
namespace VSW::Materializer::Utilities {
/// @brief The value representing a invalid CK_ID.
constexpr CK_ID INVALID_CK_ID = static_cast<CK_ID>(-1);
/**
* @brief Get relative address from given absolute address
* @details This function is used when exporting function pointer into database.
* @param[in] absolute_addr The absolute address
* @return Module based relative address like \c xxx.dll+0x00000000.
*/
std::string RelativeAddress(const void* absolute_addr);
void CopyGuid(int64_t& dst, const CKGUID& src);
void CopyCKString(std::string& storage, const char* str);
}