pub struct Api {Show 49 fields
pub il2cpp_init: unsafe extern "C" fn(*const c_char) -> i32,
pub il2cpp_set_data_dir: unsafe extern "C" fn(*const c_char),
pub il2cpp_domain_get: unsafe extern "C" fn() -> Ptr,
pub il2cpp_thread_attach: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_domain_assembly_open: unsafe extern "C" fn(Ptr, *const c_char) -> Ptr,
pub il2cpp_assembly_get_image: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_class_from_name: unsafe extern "C" fn(Ptr, *const c_char, *const c_char) -> Ptr,
pub il2cpp_class_get_name: unsafe extern "C" fn(Ptr) -> *const c_char,
pub il2cpp_class_get_namespace: unsafe extern "C" fn(Ptr) -> *const c_char,
pub il2cpp_class_get_method_from_name: unsafe extern "C" fn(Ptr, *const c_char, i32) -> Ptr,
pub il2cpp_class_get_field_from_name: unsafe extern "C" fn(Ptr, *const c_char) -> Ptr,
pub il2cpp_class_get_fields: unsafe extern "C" fn(Ptr, *mut Ptr) -> Ptr,
pub il2cpp_field_get_name: unsafe extern "C" fn(Ptr) -> *const c_char,
pub il2cpp_field_get_type: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_field_get_flags: unsafe extern "C" fn(Ptr) -> i32,
pub il2cpp_field_get_offset: unsafe extern "C" fn(Ptr) -> usize,
pub il2cpp_method_get_name: unsafe extern "C" fn(Ptr) -> *const c_char,
pub il2cpp_method_get_token: unsafe extern "C" fn(Ptr) -> u32,
pub il2cpp_object_get_class: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_string_new: unsafe extern "C" fn(*const c_char) -> Ptr,
pub il2cpp_string_chars: unsafe extern "C" fn(Ptr) -> *const u16,
pub il2cpp_string_length: unsafe extern "C" fn(Ptr) -> i32,
pub il2cpp_method_get_param_count: unsafe extern "C" fn(Ptr) -> u32,
pub il2cpp_method_get_param: unsafe extern "C" fn(Ptr, u32) -> Ptr,
pub il2cpp_method_get_param_name: unsafe extern "C" fn(Ptr, u32) -> *const c_char,
pub il2cpp_method_get_return_type: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_method_is_instance: unsafe extern "C" fn(Ptr) -> bool,
pub il2cpp_type_get_type: unsafe extern "C" fn(Ptr) -> i32,
pub il2cpp_type_is_byref: unsafe extern "C" fn(Ptr) -> bool,
pub il2cpp_type_get_name: unsafe extern "C" fn(Ptr) -> *mut c_char,
pub il2cpp_class_get_methods: unsafe extern "C" fn(Ptr, *mut Ptr) -> Ptr,
pub il2cpp_runtime_invoke: unsafe extern "C" fn(Ptr, Ptr, *mut Ptr, *mut Ptr) -> Ptr,
pub il2cpp_type_get_class_or_element_class: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_class_is_valuetype: unsafe extern "C" fn(Ptr) -> bool,
pub il2cpp_class_is_enum: unsafe extern "C" fn(Ptr) -> bool,
pub il2cpp_class_enum_basetype: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_class_get_type: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_type_get_object: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_object_new: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_gchandle_new: unsafe extern "C" fn(Ptr, bool) -> Ptr,
pub il2cpp_gchandle_get_target: unsafe extern "C" fn(Ptr) -> Ptr,
pub il2cpp_gchandle_free: unsafe extern "C" fn(Ptr),
pub il2cpp_array_length: unsafe extern "C" fn(Ptr) -> usize,
pub il2cpp_array_new: unsafe extern "C" fn(Ptr, usize) -> Ptr,
pub il2cpp_domain_get_assemblies: unsafe extern "C" fn(Ptr, *mut usize) -> *mut Ptr,
pub il2cpp_image_get_class_count: unsafe extern "C" fn(Ptr) -> usize,
pub il2cpp_image_get_class: unsafe extern "C" fn(Ptr, usize) -> Ptr,
pub il2cpp_image_get_name: unsafe extern "C" fn(Ptr) -> *const c_char,
pub il2cpp_object_unbox: unsafe extern "C" fn(Ptr) -> Ptr,
}Expand description
Function pointers into the game’s Il2Cpp runtime.
Fields§
§il2cpp_init: unsafe extern "C" fn(*const c_char) -> i32The game’s il2cpp_init export.
il2cpp_set_data_dir: unsafe extern "C" fn(*const c_char)The game’s il2cpp_set_data_dir export.
il2cpp_domain_get: unsafe extern "C" fn() -> PtrThe game’s il2cpp_domain_get export.
il2cpp_thread_attach: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_thread_attach export.
il2cpp_domain_assembly_open: unsafe extern "C" fn(Ptr, *const c_char) -> PtrThe game’s il2cpp_domain_assembly_open export.
il2cpp_assembly_get_image: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_assembly_get_image export.
il2cpp_class_from_name: unsafe extern "C" fn(Ptr, *const c_char, *const c_char) -> PtrThe game’s il2cpp_class_from_name export.
il2cpp_class_get_name: unsafe extern "C" fn(Ptr) -> *const c_charThe game’s il2cpp_class_get_name export.
il2cpp_class_get_namespace: unsafe extern "C" fn(Ptr) -> *const c_charThe game’s il2cpp_class_get_namespace export.
il2cpp_class_get_method_from_name: unsafe extern "C" fn(Ptr, *const c_char, i32) -> PtrThe game’s il2cpp_class_get_method_from_name export.
il2cpp_class_get_field_from_name: unsafe extern "C" fn(Ptr, *const c_char) -> PtrThe game’s il2cpp_class_get_field_from_name export.
il2cpp_class_get_fields: unsafe extern "C" fn(Ptr, *mut Ptr) -> PtrThe game’s il2cpp_class_get_fields export.
il2cpp_field_get_name: unsafe extern "C" fn(Ptr) -> *const c_charThe game’s il2cpp_field_get_name export.
il2cpp_field_get_type: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_field_get_type export.
il2cpp_field_get_flags: unsafe extern "C" fn(Ptr) -> i32The game’s il2cpp_field_get_flags export.
il2cpp_field_get_offset: unsafe extern "C" fn(Ptr) -> usizeThe game’s il2cpp_field_get_offset export.
il2cpp_method_get_name: unsafe extern "C" fn(Ptr) -> *const c_charThe game’s il2cpp_method_get_name export.
il2cpp_method_get_token: unsafe extern "C" fn(Ptr) -> u32The game’s il2cpp_method_get_token export.
il2cpp_object_get_class: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_object_get_class export.
il2cpp_string_new: unsafe extern "C" fn(*const c_char) -> PtrThe game’s il2cpp_string_new export.
il2cpp_string_chars: unsafe extern "C" fn(Ptr) -> *const u16The game’s il2cpp_string_chars export.
il2cpp_string_length: unsafe extern "C" fn(Ptr) -> i32The game’s il2cpp_string_length export.
il2cpp_method_get_param_count: unsafe extern "C" fn(Ptr) -> u32The game’s il2cpp_method_get_param_count export.
il2cpp_method_get_param: unsafe extern "C" fn(Ptr, u32) -> PtrThe game’s il2cpp_method_get_param export.
il2cpp_method_get_param_name: unsafe extern "C" fn(Ptr, u32) -> *const c_charThe game’s il2cpp_method_get_param_name export.
il2cpp_method_get_return_type: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_method_get_return_type export.
il2cpp_method_is_instance: unsafe extern "C" fn(Ptr) -> boolThe game’s il2cpp_method_is_instance export.
il2cpp_type_get_type: unsafe extern "C" fn(Ptr) -> i32The game’s il2cpp_type_get_type export.
il2cpp_type_is_byref: unsafe extern "C" fn(Ptr) -> boolThe game’s il2cpp_type_is_byref export.
il2cpp_type_get_name: unsafe extern "C" fn(Ptr) -> *mut c_charThe game’s il2cpp_type_get_name export.
il2cpp_class_get_methods: unsafe extern "C" fn(Ptr, *mut Ptr) -> PtrThe game’s il2cpp_class_get_methods export.
il2cpp_runtime_invoke: unsafe extern "C" fn(Ptr, Ptr, *mut Ptr, *mut Ptr) -> PtrThe game’s il2cpp_runtime_invoke export.
il2cpp_type_get_class_or_element_class: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_type_get_class_or_element_class export.
il2cpp_class_is_valuetype: unsafe extern "C" fn(Ptr) -> boolThe game’s il2cpp_class_is_valuetype export.
il2cpp_class_is_enum: unsafe extern "C" fn(Ptr) -> boolThe game’s il2cpp_class_is_enum export.
il2cpp_class_enum_basetype: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_class_enum_basetype export.
il2cpp_class_get_type: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_class_get_type export.
il2cpp_type_get_object: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_type_get_object export.
il2cpp_object_new: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_object_new export.
il2cpp_gchandle_new: unsafe extern "C" fn(Ptr, bool) -> PtrThe game’s il2cpp_gchandle_new export.
il2cpp_gchandle_get_target: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_gchandle_get_target export.
il2cpp_gchandle_free: unsafe extern "C" fn(Ptr)The game’s il2cpp_gchandle_free export.
il2cpp_array_length: unsafe extern "C" fn(Ptr) -> usizeThe game’s il2cpp_array_length export.
il2cpp_array_new: unsafe extern "C" fn(Ptr, usize) -> PtrThe game’s il2cpp_array_new export.
il2cpp_domain_get_assemblies: unsafe extern "C" fn(Ptr, *mut usize) -> *mut PtrThe game’s il2cpp_domain_get_assemblies export.
il2cpp_image_get_class_count: unsafe extern "C" fn(Ptr) -> usizeThe game’s il2cpp_image_get_class_count export.
il2cpp_image_get_class: unsafe extern "C" fn(Ptr, usize) -> PtrThe game’s il2cpp_image_get_class export.
il2cpp_image_get_name: unsafe extern "C" fn(Ptr) -> *const c_charThe game’s il2cpp_image_get_name export.
il2cpp_object_unbox: unsafe extern "C" fn(Ptr) -> PtrThe game’s il2cpp_object_unbox export.