| 317 | } |
| 318 | |
| 319 | bool 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 | |
| 338 | int WinDbgMemoryProvider::size() const |
| 339 | { |
nothing calls this directly
no outgoing calls
no test coverage detected