MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / ReadStruct

Method ReadStruct

Source/Client/NM_Engine/MemoryHelper.h:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32 template <typename T>
33 T* ReadStruct(const DWORD_PTR Address)
34 {
35 T ret;
36 if (!g_winapiApiTable->ReadProcessMemory(m_hProcess, (LPCVOID)Address, &ret, sizeof(T), nullptr))
37 return nullptr;
38 return &ret;
39 }
40 template <typename T>
41 bool ReadStruct(const DWORD_PTR Address, T& data)
42 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected