Skip to main content

engage/generated/system/reflection/
monomethodinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-monomethodinfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/monomethodinfo/MonoMethodInfo.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct MonoMethodInfo {
17        pub parent: ::unity::SystemType,
18        pub ret: ::unity::SystemType,
19        pub attrs: crate::system::reflection::methodattributes::MethodAttributes,
20        pub iattrs: crate::system::reflection::methodimplattributes::MethodImplAttributes,
21        pub callconv: crate::system::reflection::callingconventions::CallingConventions,
22    }
23    impl ::unity::ClassIdentity for MonoMethodInfo {
24        const NAME: &'static str = "MonoMethodInfo";
25        const NAMESPACE: &'static str = "System.Reflection";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for MonoMethodInfo {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37}
38
39#[cfg(feature = "system-reflection-monomethodinfo-types")]
40pub use __types::*;
41
42#[cfg(feature = "system-reflection-monomethodinfo")]
43impl MonoMethodInfo {
44    #[doc = "`get_method_info(::unity::IntPtr, *mutcrate::system::reflection::monomethodinfo::MonoMethodInfo)` overload"]
45    pub fn get_method_info(handle: impl ::core::convert::Into<::unity::IntPtr>) -> crate::system::reflection::monomethodinfo::MonoMethodInfo {
46        unsafe {
47            let mut __out_0 = ::core::mem::MaybeUninit::<crate::system::reflection::monomethodinfo::MonoMethodInfo>::uninit();
48            ::unity::il2cpp_call!((::unity::module_base()+0x3382030usize)as*mut u8,();
49(::unity::IntPtr)::core::convert::Into::into(handle),(*mut crate::system::reflection::monomethodinfo::MonoMethodInfo)__out_0.as_mut_ptr());
50            __out_0.assume_init()
51        }
52    }
53
54    #[doc = "`get_method_attributes(::unity::IntPtr)` overload"]
55    pub fn get_method_attributes(handle: impl ::core::convert::Into<::unity::IntPtr>) -> i32 {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x3382040usize)as*mut u8,i32;
58(::unity::IntPtr)::core::convert::Into::into(handle))
59        }
60    }
61
62    #[doc = "`GetMethodInfo(::unity::IntPtr)` overload"]
63    pub fn get_method_info_2(handle: impl ::core::convert::Into<::unity::IntPtr>) -> crate::system::reflection::monomethodinfo::MonoMethodInfo {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x3381aa0usize)as*mut u8,crate::system::reflection::monomethodinfo::MonoMethodInfo;
66(::unity::IntPtr)::core::convert::Into::into(handle))
67        }
68    }
69
70    #[doc = "`GetDeclaringType(::unity::IntPtr)` overload"]
71    pub fn get_declaring_type(handle: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::SystemType {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x337bfe0usize)as*mut u8, ::unity::SystemType;
74(::unity::IntPtr)::core::convert::Into::into(handle))
75        }
76    }
77
78    #[doc = "`GetReturnType(::unity::IntPtr)` overload"]
79    pub fn get_return_type(handle: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::SystemType {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x3381510usize)as*mut u8, ::unity::SystemType;
82(::unity::IntPtr)::core::convert::Into::into(handle))
83        }
84    }
85
86    #[doc = "`GetAttributes(::unity::IntPtr)` overload"]
87    pub fn get_attributes(handle: impl ::core::convert::Into<::unity::IntPtr>) -> crate::system::reflection::methodattributes::MethodAttributes {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x337bf00usize)as*mut u8,crate::system::reflection::methodattributes::MethodAttributes;
90(::unity::IntPtr)::core::convert::Into::into(handle))
91        }
92    }
93
94    #[doc = "`GetCallingConvention(::unity::IntPtr)` overload"]
95    pub fn get_calling_convention(
96        handle: impl ::core::convert::Into<::unity::IntPtr>,
97    ) -> crate::system::reflection::callingconventions::CallingConventions {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x337bf40usize)as*mut u8,crate::system::reflection::callingconventions::CallingConventions;
100(::unity::IntPtr)::core::convert::Into::into(handle))
101        }
102    }
103
104    #[doc = "`GetMethodImplementationFlags(::unity::IntPtr)` overload"]
105    pub fn get_method_implementation_flags(
106        handle: impl ::core::convert::Into<::unity::IntPtr>,
107    ) -> crate::system::reflection::methodimplattributes::MethodImplAttributes {
108        unsafe {
109            ::unity::il2cpp_call!((::unity::module_base()+0x337b740usize)as*mut u8,crate::system::reflection::methodimplattributes::MethodImplAttributes;
110(::unity::IntPtr)::core::convert::Into::into(handle))
111        }
112    }
113
114    #[doc = "`get_parameter_info(::unity::IntPtr, crate::system::reflection::memberinfo::MemberInfo)` overload"]
115    pub fn get_parameter_info(
116        handle: impl ::core::convert::Into<::unity::IntPtr>,
117        member: impl ::core::convert::Into<crate::system::reflection::memberinfo::MemberInfo>,
118    ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x3382050usize)as*mut u8, ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> ;
121(::unity::IntPtr)::core::convert::Into::into(handle),(crate::system::reflection::memberinfo::MemberInfo)::core::convert::Into::into(member))
122        }
123    }
124
125    #[doc = "`GetParametersInfo(::unity::IntPtr, crate::system::reflection::memberinfo::MemberInfo)` overload"]
126    pub fn get_parameters_info(
127        handle: impl ::core::convert::Into<::unity::IntPtr>,
128        member: impl ::core::convert::Into<crate::system::reflection::memberinfo::MemberInfo>,
129    ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x337b780usize)as*mut u8, ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> ;
132(::unity::IntPtr)::core::convert::Into::into(handle),(crate::system::reflection::memberinfo::MemberInfo)::core::convert::Into::into(member))
133        }
134    }
135}
136
137#[cfg(feature = "system-reflection-monomethodinfo")]
138impl MonoMethodInfo {
139    pub fn get_method_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141    }
142
143    pub fn get_method_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145    }
146
147    pub fn get_method_info_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
149    }
150
151    pub fn get_declaring_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
153    }
154
155    pub fn get_return_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
157    }
158
159    pub fn get_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
161    }
162
163    pub fn get_calling_convention_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
165    }
166
167    pub fn get_method_implementation_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
169    }
170
171    pub fn get_parameter_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
173    }
174
175    pub fn get_parameters_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
177    }
178}
179
180#[cfg(feature = "system-reflection-monomethodinfo")]
181#[doc(hidden)]
182pub mod prelude {
183    pub use super::MonoMethodInfo;
184    #[cfg(feature = "system-object")]
185    pub use crate::system::object::IObjectMethods;
186    #[cfg(feature = "system-valuetype")]
187    pub use crate::system::valuetype::IValueTypeMethods;
188    pub use crate::system::{object::IObject, valuetype::IValueType};
189}