private string test_string = "hello world"; public int[] test_int_array; protected List<string> test_string_list; private TEST_ENUM test_enum; private Hello hello = new Hello(); private void Awake() { Init(); }
public int test_int = 0; protected float test_float = 0.0f; private string test_string = "hello world"; public int[] test_int_array; protected List<string> test_string_list; private TEST_ENUM test_enum; private Hello hello = new Hello(); private void Awake() { Init(); } private ...
gc_resize_event(void *,long long) #2:il2cpp::vm::Profiler::GCHeapResize(long long) #3:GC_collect_or_expand #4:GC_alloc_large #5:GC_generic_malloc #6:GC_malloc_kind_global #7:il2cpp::vm::Object::AllocatePtrFree(uint,Il2CppClass *) #8:il2cpp::vm::Array::NewSpecific(Il2Cpp...
DEFINE_IL2CPP_FUN(uint32_t, il2cpp_array_get_byte_length, (Il2CppArray * array)); DEFINE_IL2CPP_FUN(Il2CppArray*, il2cpp_array_new, (Il2CppClass * elementTypeInfo, il2cpp_array_size_t length)); DEFINE_IL2CPP_FUN(Il2CppArray*, il2cpp_array_new_specific, (Il2CppClass * arrayTypeIn...
"il2cpp_array_get_byte_length", "il2cpp_array_new", "il2cpp_array_new_specific", "il2cpp_array_new_full", "il2cpp_bounded_array_class_get", "il2cpp_array_element_size", "il2cpp_assembly_get_image", "il2cpp_class_enum_basetype", "il2cpp_class_is_generic", "il2cpp_class_is_infl...
DO_API( Il2CppArray*, il2cpp_array_new_specific, (Il2CppClass *arrayTypeInfo, il2cpp_array_size_t length) ); DO_API( Il2CppArray*, il2cpp_array_new_full, (Il2CppClass *array_class, il2cpp_array_size_t *lengths, il2cpp_array_size_t *lower_bounds) ); DO_API( Il2CppClass*, il...
user- project-specific binary-agnostic user code which you can modify as desired: main.cppandmain.h: Contains a stubRun()function which denotes the entry point for your custom injected code. The function executes in a new thread and therefore does not blockDllMain. ...
Here we see that the implementation ofFullMemoryBarrieris platform-specific. Since we’re on POSIX-based iOS, we’ll reados/Posix/PosixImpl.h: inlinevoidAtomic::FullMemoryBarrier(){__sync_synchronize();} Finally we’ve reached the implementation! TheGCC docsdescribe__sync_synchronizeas simply ...
(void*ptr,size_tsize,size_talignment);}Il2CppMemoryCallbacks;typedefvoidIl2CppClass;typedefvoidIl2CppArray;typedefvoidIl2CppImage;typedefvoidIl2CppAssembly;typedefvoidIl2CppReflectionType;typedefvoidEventInfo;typedefuintptr_til2cpp_array_size_t;typedefvoidFieldInfo;typedefvoidPropertyInfo;typedefvoidMethodInfo...
may be arbitrarily janky with interface methods. Additionally, using them in foreach may result in implicit casts on managed side (instead ofCast<T>, see below), leading to exceptions. Usevarinforeachor useforinstead offoreachwhen possible as a workaround, or cast them to the specific interf...