MCPcopy Create free account
hub / github.com/beefytech/Beef / WriteInstructions

Method WriteInstructions

IDEHelper/WinDebugger.cpp:13796–13804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13794}
13795
13796bool WinDebugger::WriteInstructions(intptr address, void* src, uint64 length)
13797{
13798 SIZE_T dwBytesWritten = 0;
13799 bool result = ::WriteProcessMemory(mProcessInfo.hProcess, (void*)(intptr)address, src, (SIZE_T)length, &dwBytesWritten) != 0;
13800 result |= ::FlushInstructionCache(mProcessInfo.hProcess, (void*)(intptr)address, (SIZE_T)length) != 0;
13801 BF_ASSERT(result);
13802 BfLogDbg("WriteInstructions: %p %d\n", address, length);
13803 return result;
13804}
13805
13806DbgMemoryFlags WinDebugger::GetMemoryFlags(intptr address)
13807{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected