engage/generated/system/reflection/
assemblyname.rs1#[cfg(feature = "system-reflection-assemblyname-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/assemblyname/AssemblyName.md"))]
11 #[::unity::class(namespace = "System.Reflection", name = "AssemblyName")]
12 #[parent(crate::system::object::Object)]
13 pub struct AssemblyName {
14 #[offset(16)]
15 #[rename(name = "name")]
16 pub name: ::unity::Il2CppString,
17 #[offset(24)]
18 #[rename(name = "codebase")]
19 pub codebase: ::unity::Il2CppString,
20 #[offset(32)]
21 #[rename(name = "major")]
22 pub major: i32,
23 #[offset(36)]
24 #[rename(name = "minor")]
25 pub minor: i32,
26 #[offset(40)]
27 #[rename(name = "build")]
28 pub build: i32,
29 #[offset(44)]
30 #[rename(name = "revision")]
31 pub revision: i32,
32 #[offset(56)]
33 #[rename(name = "flags")]
34 pub flags: crate::system::reflection::assemblynameflags::AssemblyNameFlags,
35 #[offset(64)]
36 #[rename(name = "keypair")]
37 pub keypair: crate::system::reflection::strongnamekeypair::StrongNameKeyPair,
38 #[offset(72)]
39 #[rename(name = "publicKey")]
40 pub public_key: ::unity::Array<u8>,
41 #[offset(80)]
42 #[rename(name = "keyToken")]
43 pub key_token: ::unity::Array<u8>,
44 #[offset(104)]
45 #[rename(name = "processor_architecture")]
46 pub processor_architecture: crate::system::reflection::processorarchitecture::ProcessorArchitecture,
47 #[offset(108)]
48 #[rename(name = "contentType")]
49 pub content_type: crate::system::reflection::assemblycontenttype::AssemblyContentType,
50 }
51}
52
53#[cfg(feature = "system-reflection-assemblyname-types")]
54pub use __types::*;
55
56#[cfg(feature = "system-reflection-assemblyname")]
57impl AssemblyName {
58 #[doc = "`Create(crate::system::reflection::assembly::Assembly, bool)` overload"]
59 pub fn create(
60 assembly: impl ::core::convert::Into<crate::system::reflection::assembly::Assembly>,
61 fill_codebase: impl ::core::convert::Into<bool>,
62 ) -> crate::system::reflection::assemblyname::AssemblyName {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x34039d0usize)as*mut u8,crate::system::reflection::assemblyname::AssemblyName;
65(crate::system::reflection::assembly::Assembly)::core::convert::Into::into(assembly),(bool)::core::convert::Into::into(fill_codebase))
66 }
67 }
68}
69
70#[cfg(feature = "system-reflection-assemblyname")]
71pub trait IAssemblyNameMethods: IAssemblyName {
72 #[doc = "`.ctor()` overload"]
73 fn ctor(self) -> () {
74 unsafe {
75 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x3401d70usize)as*mut u8,();
77(AssemblyName)__receiver)
78 }
79 }
80 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
81 fn ctor_2(self, assembly_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
82 unsafe {
83 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x3401db0usize)as*mut u8,();
85(AssemblyName)__receiver,(::unity::Il2CppString)::core::convert::Into::into(assembly_name))
86 }
87 }
88 #[doc = "`get_Name()` overload"]
89 fn get_name(self) -> ::unity::Il2CppString {
90 unsafe {
91 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x3402990usize)as*mut u8, ::unity::Il2CppString;
93(AssemblyName)__receiver)
94 }
95 }
96 #[doc = "`get_Flags()` overload"]
97 fn get_flags(self) -> crate::system::reflection::assemblynameflags::AssemblyNameFlags {
98 unsafe {
99 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x34029b0usize)as*mut u8,crate::system::reflection::assemblynameflags::AssemblyNameFlags;
101(AssemblyName)__receiver)
102 }
103 }
104 #[doc = "`get_FullName()` overload"]
105 fn get_full_name(self) -> ::unity::Il2CppString {
106 unsafe {
107 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x34029c0usize)as*mut u8, ::unity::Il2CppString;
109(AssemblyName)__receiver)
110 }
111 }
112 #[doc = "`ToString()` overload"]
113 fn to_string(self) -> ::unity::Il2CppString {
114 unsafe {
115 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 {
117 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
118 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
119 panic!(
120 "unity: virtual slot {}
121 out of range (vtable len {}
122) on the runtime class behind {}
123 (method `{}
124`)",
125 3usize,
126 __vt.len(),
127 <AssemblyName as ::unity::ClassIdentity>::NAME,
128 "ToString",
129 )
130 });
131 let __inner: extern "C" fn(AssemblyName, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
132 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133 __inner(__receiver, __mi)
134 }
135 }
136 }
137 #[doc = "`GetPublicKeyToken()` overload"]
138 fn get_public_key_token(self) -> ::unity::Array<u8> {
139 unsafe {
140 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x3403090usize)as*mut u8, ::unity::Array<u8> ;
142(AssemblyName)__receiver)
143 }
144 }
145 #[doc = "`get_IsPublicKeyValid()` overload"]
146 fn get_is_public_key_valid(self) -> bool {
147 unsafe {
148 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x34032f0usize)as*mut u8,bool;
150(AssemblyName)__receiver)
151 }
152 }
153 #[doc = "`InternalGetPublicKeyToken()` overload"]
154 fn internal_get_public_key_token(self) -> ::unity::Array<u8> {
155 unsafe {
156 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x3402d50usize)as*mut u8, ::unity::Array<u8> ;
158(AssemblyName)__receiver)
159 }
160 }
161 #[doc = "`ComputePublicKeyToken()` overload"]
162 fn compute_public_key_token(self) -> ::unity::Array<u8> {
163 unsafe {
164 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x34033e0usize)as*mut u8, ::unity::Array<u8> ;
166(AssemblyName)__receiver)
167 }
168 }
169 #[doc = "`Clone()` overload"]
170 fn clone(self) -> crate::system::object::Object {
171 unsafe {
172 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 {
174 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
175 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
176 panic!(
177 "unity: virtual slot {}
178 out of range (vtable len {}
179) on the runtime class behind {}
180 (method `{}
181`)",
182 4usize,
183 __vt.len(),
184 <AssemblyName as ::unity::ClassIdentity>::NAME,
185 "Clone",
186 )
187 });
188 let __inner: extern "C" fn(AssemblyName, ::unity::OptionalMethod) -> crate::system::object::Object =
189 ::core::mem::transmute(__vi.method_ptr);
190 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
191 __inner(__receiver, __mi)
192 }
193 }
194 }
195 #[doc = "`OnDeserialization(crate::system::object::Object)` overload"]
196 fn on_deserialization(self, sender: impl ::core::convert::Into<crate::system::object::Object>) -> () {
197 unsafe {
198 let __receiver = <AssemblyName as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 {
200 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
201 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
202 panic!(
203 "unity: virtual slot {}
204 out of range (vtable len {}
205) on the runtime class behind {}
206 (method `{}
207`)",
208 6usize,
209 __vt.len(),
210 <AssemblyName as ::unity::ClassIdentity>::NAME,
211 "OnDeserialization",
212 )
213 });
214 let __inner: extern "C" fn(AssemblyName, crate::system::object::Object, ::unity::OptionalMethod) -> () =
215 ::core::mem::transmute(__vi.method_ptr);
216 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
217 __inner(__receiver, ::core::convert::Into::into(sender), __mi)
218 }
219 }
220 }
221}
222
223#[cfg(feature = "system-reflection-assemblyname")]
224impl<__T: IAssemblyName> IAssemblyNameMethods for __T {}
225
226#[cfg(feature = "system-reflection-assemblyname")]
227impl AssemblyName {
228 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
230 }
231
232 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
234 }
235
236 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
238 }
239
240 pub fn get_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
242 }
243
244 pub fn get_full_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
246 }
247
248 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
250 }
251
252 pub fn get_public_key_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
254 }
255
256 pub fn get_is_public_key_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
258 }
259
260 pub fn internal_get_public_key_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
262 }
263
264 pub fn compute_public_key_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
266 }
267
268 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
270 }
271
272 pub fn on_deserialization_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
274 }
275
276 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
278 }
279}
280
281#[cfg(feature = "system-reflection-assemblyname")]
282impl AssemblyName {
283 #[doc = "Direct (non-virtual) call to `AssemblyName`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
284 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
285 let __mi = Self::to_string_method_info();
286 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
287 __inner(this.into(), ::core::option::Option::None)
288 }
289
290 #[doc = "Direct (non-virtual) call to `AssemblyName`'s own `Clone`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
291 pub unsafe fn clone(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
292 let __mi = Self::clone_method_info();
293 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
294 ::core::mem::transmute(__mi.method_ptr);
295 __inner(this.into(), ::core::option::Option::None)
296 }
297
298 #[doc = "Direct (non-virtual) call to `AssemblyName`'s own `OnDeserialization`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
299 pub unsafe fn on_deserialization(this: impl ::core::convert::Into<::unity::IlInstance>, sender: crate::system::object::Object) -> () {
300 let __mi = Self::on_deserialization_method_info();
301 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> () =
302 ::core::mem::transmute(__mi.method_ptr);
303 __inner(this.into(), sender, ::core::option::Option::None)
304 }
305}
306
307#[cfg(feature = "system-reflection-assemblyname")]
308impl AssemblyName {
309 #[doc = "`.ctor()` — no args"]
310 pub fn new() -> Self {
311 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
312 panic!(
313 "{}
314::{}
315 failed to instantiate",
316 ::core::stringify!(AssemblyName),
317 ::core::stringify!(new),
318 )
319 });
320 <Self as IAssemblyNameMethods>::ctor(this);
321 this
322 }
323
324 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
325 pub fn new_2(assembly_name: ::unity::Il2CppString) -> Self {
326 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
327 panic!(
328 "{}
329::{}
330 failed to instantiate",
331 ::core::stringify!(AssemblyName),
332 ::core::stringify!(new_2),
333 )
334 });
335 <Self as IAssemblyNameMethods>::ctor_2(this, assembly_name);
336 this
337 }
338}
339
340#[cfg(feature = "system-reflection-assemblyname")]
341#[doc(hidden)]
342pub mod prelude {
343 pub use super::{AssemblyName, IAssemblyName, IAssemblyNameMethods};
344 pub use crate::system::object::IObject;
345 #[cfg(feature = "system-object")]
346 pub use crate::system::object::IObjectMethods;
347}