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

Method write

plugins/WinDbgMemory/WinDbgMemoryPlugin.cpp:319–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319bool WinDbgMemoryProvider::write(uint64_t addr, const void* buf, int len)
320{
321#ifdef _WIN32
322 if (!m_dataSpaces || !m_writable || len <= 0) return false;
323
324 bool result = false;
325 dispatchToOwner([&]() {
326 ULONG bytesWritten = 0;
327 HRESULT hr = m_dataSpaces->WriteVirtual(m_base + addr, const_cast<void*>(buf),
328 (ULONG)len, &bytesWritten);
329 result = SUCCEEDED(hr) && bytesWritten == (ULONG)len;
330 });
331 return result;
332#else
333 Q_UNUSED(addr); Q_UNUSED(buf); Q_UNUSED(len);
334 return false;
335#endif
336}
337
338int WinDbgMemoryProvider::size() const
339{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected