* attempt to copy a string from source address to target address. may truncate or leak, depending on platform * @return length copied */
| 209 | * @return length copied |
| 210 | */ |
| 211 | size_t copySTLString(const void* address, const uintptr_t target) |
| 212 | { |
| 213 | std::string* strsrc = (std::string*)address; |
| 214 | std::string* str = (std::string*)target; |
| 215 | str->assign(*strsrc); |
| 216 | return str->size(); |
| 217 | } |
| 218 | |
| 219 | /// get class name of an object with rtti/type info |
| 220 | std::string doReadClassName(void* vptr); |