MCPcopy Create free account
hub / github.com/Vector35/debugger / ReadMemory

Method ReadMemory

core/adapters/dbgengadapter.cpp:1469–1480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467
1468
1469DataBuffer DbgEngAdapter::ReadMemory(std::uintptr_t address, std::size_t size)
1470{
1471 const auto source = std::make_unique<std::uint8_t[]>(size);
1472
1473 unsigned long bytesRead {};
1474 const auto success =
1475 this->m_debugDataSpaces->ReadVirtual(address, source.get(), size, &bytesRead) == S_OK && bytesRead == size;
1476 if (!success)
1477 return {};
1478
1479 return {source.get(), size};
1480}
1481
1482bool DbgEngAdapter::WriteMemory(std::uintptr_t address, const DataBuffer& buffer)
1483{

Callers 1

AddBreakpointMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected