MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / read

Method read

plugins/ProcessMemoryWindows/ProcessMemoryWindowsPlugin.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool ProcessMemoryWindowsProvider::read(uint64_t addr, void* buf, int len) const
64{
65 if (!m_handle || len <= 0) return false;
66
67 SIZE_T bytesRead = 0;
68 ReadProcessMemory(m_handle, (LPCVOID)(m_base + addr), buf, (SIZE_T)len, &bytesRead);
69 if ((int)bytesRead < len)
70 memset((char*)buf + bytesRead, 0, len - bytesRead);
71 return bytesRead > 0;
72}
73
74bool ProcessMemoryWindowsProvider::write(uint64_t addr, const void* buf, int len)
75{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected