| 217 | } |
| 218 | |
| 219 | bool virtual_identity::set_vmethod_ptr(MemoryPatcher &patcher, int idx, void *ptr) const |
| 220 | { |
| 221 | assert(idx >= 0); |
| 222 | void **vtable = (void**)vtable_ptr(); |
| 223 | if (!vtable) return NULL; |
| 224 | return patcher.write(&vtable[idx], &ptr, sizeof(void*)); |
| 225 | } |
| 226 | |
| 227 | /* |
| 228 | VMethod interposing data structures. |
no test coverage detected