INNER CODE UNIT · C++
byref
Perfare/Zygisk-Il2CppDumper · module/src/main/cpp/il2cpp_dump.cpp:88
auto byref = type->byref;
if (il2cpp_type_is_byref) {
byref = il2cpp_type_is_byref(type);
}
return byref;
}
std::string dump_method(Il2CppClass *klass) {
std::stringstream outPut;
outPut << "\n\t// Methods\n";
void *iter = nullptr;
while (auto method = il2cpp_class_get_methods(klass, &iter)) {
//TODO attribute
if (method->methodPointer) {
outPut << "\t// RVA: 0x";
outPut << std::hex << (uint64_t) method->methodPointer - il2cpp_base;
outPut << " VA: 0x";
outPut << std::hex << (uint64_t) method->methodPointer;