Skip to main content

Api

Struct Api 

Source
pub struct Api {
Show 48 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_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) -> i32§il2cpp_set_data_dir: unsafe extern "C" fn(*const c_char)§il2cpp_domain_get: unsafe extern "C" fn() -> Ptr§il2cpp_thread_attach: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_domain_assembly_open: unsafe extern "C" fn(Ptr, *const c_char) -> Ptr§il2cpp_assembly_get_image: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_class_from_name: unsafe extern "C" fn(Ptr, *const c_char, *const c_char) -> Ptr§il2cpp_class_get_name: unsafe extern "C" fn(Ptr) -> *const c_char§il2cpp_class_get_namespace: unsafe extern "C" fn(Ptr) -> *const c_char§il2cpp_class_get_method_from_name: unsafe extern "C" fn(Ptr, *const c_char, i32) -> Ptr§il2cpp_class_get_field_from_name: unsafe extern "C" fn(Ptr, *const c_char) -> Ptr§il2cpp_class_get_fields: unsafe extern "C" fn(Ptr, *mut Ptr) -> Ptr§il2cpp_field_get_name: unsafe extern "C" fn(Ptr) -> *const c_char§il2cpp_field_get_type: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_field_get_flags: unsafe extern "C" fn(Ptr) -> i32§il2cpp_field_get_offset: unsafe extern "C" fn(Ptr) -> usize§il2cpp_method_get_name: unsafe extern "C" fn(Ptr) -> *const c_char§il2cpp_object_get_class: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_string_new: unsafe extern "C" fn(*const c_char) -> Ptr§il2cpp_string_chars: unsafe extern "C" fn(Ptr) -> *const u16§il2cpp_string_length: unsafe extern "C" fn(Ptr) -> i32§il2cpp_method_get_param_count: unsafe extern "C" fn(Ptr) -> u32§il2cpp_method_get_param: unsafe extern "C" fn(Ptr, u32) -> Ptr§il2cpp_method_get_param_name: unsafe extern "C" fn(Ptr, u32) -> *const c_char§il2cpp_method_get_return_type: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_method_is_instance: unsafe extern "C" fn(Ptr) -> bool§il2cpp_type_get_type: unsafe extern "C" fn(Ptr) -> i32§il2cpp_type_is_byref: unsafe extern "C" fn(Ptr) -> bool§il2cpp_type_get_name: unsafe extern "C" fn(Ptr) -> *mut c_char§il2cpp_class_get_methods: unsafe extern "C" fn(Ptr, *mut Ptr) -> Ptr§il2cpp_runtime_invoke: unsafe extern "C" fn(Ptr, Ptr, *mut Ptr, *mut Ptr) -> Ptr§il2cpp_type_get_class_or_element_class: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_class_is_valuetype: unsafe extern "C" fn(Ptr) -> bool§il2cpp_class_is_enum: unsafe extern "C" fn(Ptr) -> bool§il2cpp_class_enum_basetype: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_class_get_type: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_type_get_object: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_object_new: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_gchandle_new: unsafe extern "C" fn(Ptr, bool) -> Ptr§il2cpp_gchandle_get_target: unsafe extern "C" fn(Ptr) -> Ptr§il2cpp_gchandle_free: unsafe extern "C" fn(Ptr)§il2cpp_array_length: unsafe extern "C" fn(Ptr) -> usize§il2cpp_array_new: unsafe extern "C" fn(Ptr, usize) -> Ptr§il2cpp_domain_get_assemblies: unsafe extern "C" fn(Ptr, *mut usize) -> *mut Ptr§il2cpp_image_get_class_count: unsafe extern "C" fn(Ptr) -> usize§il2cpp_image_get_class: unsafe extern "C" fn(Ptr, usize) -> Ptr§il2cpp_image_get_name: unsafe extern "C" fn(Ptr) -> *const c_char§il2cpp_object_unbox: unsafe extern "C" fn(Ptr) -> Ptr

Auto Trait Implementations§

§

impl Freeze for Api

§

impl RefUnwindSafe for Api

§

impl Send for Api

§

impl Sync for Api

§

impl Unpin for Api

§

impl UnsafeUnpin for Api

§

impl UnwindSafe for Api

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more