Skip to main content

engage/generated/system/reflection/
strongnamekeypair.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-strongnamekeypair-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/strongnamekeypair/StrongNameKeyPair.md"))]
11    #[::unity::class(namespace = "System.Reflection", name = "StrongNameKeyPair")]
12    #[parent(crate::system::object::Object)]
13    pub struct StrongNameKeyPair {
14        #[offset(16)]
15        #[rename(name = "_publicKey")]
16        pub public_key: ::unity::Array<u8>,
17        #[offset(24)]
18        #[rename(name = "_keyPairContainer")]
19        pub key_pair_container: ::unity::Il2CppString,
20        #[offset(32)]
21        #[rename(name = "_keyPairExported")]
22        pub key_pair_exported: bool,
23        #[offset(40)]
24        #[rename(name = "_keyPairArray")]
25        pub key_pair_array: ::unity::Array<u8>,
26    }
27}
28
29#[cfg(feature = "system-reflection-strongnamekeypair-types")]
30pub use __types::*;
31
32#[cfg(feature = "system-reflection-strongnamekeypair")]
33pub trait IStrongNameKeyPairMethods: IStrongNameKeyPair {
34    #[doc = "`System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(crate::system::object::Object)` overload"]
35    fn system_runtime_serialization_i_deserialization_callback_on_deserialization(
36        self,
37        sender: impl ::core::convert::Into<crate::system::object::Object>,
38    ) -> () {
39        unsafe {
40            let __receiver = <StrongNameKeyPair as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            {
42                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
43                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
44                    panic!(
45                        "unity: virtual slot {}
46 out of range (vtable len {}
47) on the runtime class behind {}
48 (method `{}
49`)",
50                        5usize,
51                        __vt.len(),
52                        <StrongNameKeyPair as ::unity::ClassIdentity>::NAME,
53                        "System.Runtime.Serialization.IDeserializationCallback.OnDeserialization",
54                    )
55                });
56                let __inner: extern "C" fn(StrongNameKeyPair, crate::system::object::Object, ::unity::OptionalMethod) -> () =
57                    ::core::mem::transmute(__vi.method_ptr);
58                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
59                __inner(__receiver, ::core::convert::Into::into(sender), __mi)
60            }
61        }
62    }
63}
64
65#[cfg(feature = "system-reflection-strongnamekeypair")]
66impl<__T: IStrongNameKeyPair> IStrongNameKeyPairMethods for __T {}
67
68#[cfg(feature = "system-reflection-strongnamekeypair")]
69impl StrongNameKeyPair {
70    pub fn system_runtime_serialization_i_deserialization_callback_on_deserialization_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
72    }
73}
74
75#[cfg(feature = "system-reflection-strongnamekeypair")]
76impl StrongNameKeyPair {
77    #[doc = "Direct (non-virtual) call to `StrongNameKeyPair`'s own `System.Runtime.Serialization.IDeserializationCallback.OnDeserialization`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
78    pub unsafe fn system_runtime_serialization_i_deserialization_callback_on_deserialization(
79        this: impl ::core::convert::Into<::unity::IlInstance>,
80        sender: crate::system::object::Object,
81    ) -> () {
82        let __mi = Self::system_runtime_serialization_i_deserialization_callback_on_deserialization_method_info();
83        let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> () =
84            ::core::mem::transmute(__mi.method_ptr);
85        __inner(this.into(), sender, ::core::option::Option::None)
86    }
87}
88
89#[cfg(feature = "system-reflection-strongnamekeypair")]
90#[doc(hidden)]
91pub mod prelude {
92    pub use super::{IStrongNameKeyPair, IStrongNameKeyPairMethods, StrongNameKeyPair};
93    pub use crate::system::object::IObject;
94    #[cfg(feature = "system-object")]
95    pub use crate::system::object::IObjectMethods;
96}