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

Method get_vmethod_ptr

library/VTableInterpose.cpp:211–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209#endif
210
211void *virtual_identity::get_vmethod_ptr(int idx) const
212{
213 assert(idx >= 0);
214 void **vtable = (void**)vtable_ptr();
215 if (!vtable) return NULL;
216 return vtable[idx];
217}
218
219bool virtual_identity::set_vmethod_ptr(MemoryPatcher &patcher, int idx, void *ptr) const
220{

Callers 2

find_child_hostsMethod · 0.45
applyMethod · 0.45

Calls 1

vtable_ptrFunction · 0.85

Tested by

no test coverage detected