MCPcopy Create free account
hub / github.com/DFHack/dfhack / write

Method write

library/MemoryPatcher.cpp:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 bool MemoryPatcher::write(void* target, const void* src, size_t size)
65 {
66 if (!makeWritable(target, size))
67 return false;
68
69 memmove(target, src, size);
70
71 p->flushCache(target, size);
72 return true;
73 }
74
75 void MemoryPatcher::close()
76 {

Callers 12

write_tool_docsFunction · 0.45
patchMemoryMethod · 0.45
set_vmethod_ptrMethod · 0.45
toLocaleMBFunction · 0.45
WriteMethod · 0.45
run-tests.pyFile · 0.45
errorFunction · 0.45
mainFunction · 0.45
print_stderrFunction · 0.45
writeFunction · 0.45
write_file_if_changedFunction · 0.45
init_tag_indicesFunction · 0.45

Calls 1

flushCacheMethod · 0.80

Tested by

no test coverage detected