Skip to main content

engage/generated/root/
akserializedcallbackheader.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akserializedcallbackheader-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/root/akserializedcallbackheader/AkSerializedCallbackHeader.md"))]
11    #[::unity::class(namespace = "", name = "AkSerializedCallbackHeader")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkSerializedCallbackHeader {
14        #[offset(16)]
15        #[rename(name = "swigCPtr")]
16        pub swig_c_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "swigCMemOwn")]
19        pub swig_c_mem_own: bool,
20    }
21}
22
23#[cfg(feature = "root-akserializedcallbackheader-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akserializedcallbackheader")]
27impl AkSerializedCallbackHeader {
28    #[doc = "`getCPtr(crate::root::akserializedcallbackheader::AkSerializedCallbackHeader)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akserializedcallbackheader::AkSerializedCallbackHeader>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1d04750usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akserializedcallbackheader::AkSerializedCallbackHeader)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akserializedcallbackheader")]
38pub trait IAkSerializedCallbackHeaderMethods: IAkSerializedCallbackHeader {
39    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
40    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
41        unsafe {
42            let __receiver =
43                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x1d04710usize)as*mut u8,();
45(AkSerializedCallbackHeader)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
46        }
47    }
48    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
49    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
50        unsafe {
51            let __receiver =
52                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            {
54                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
56                    panic!(
57                        "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62                        5usize,
63                        __vt.len(),
64                        <AkSerializedCallbackHeader as ::unity::ClassIdentity>::NAME,
65                        "setCPtr",
66                    )
67                });
68                let __inner: extern "C" fn(AkSerializedCallbackHeader, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
69                    ::core::mem::transmute(__vi.method_ptr);
70                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
71                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
72            }
73        }
74    }
75    #[doc = "`Finalize()` overload"]
76    fn finalize(self) -> () {
77        unsafe {
78            let __receiver =
79                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            {
81                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
83                    panic!(
84                        "unity: virtual slot {}
85 out of range (vtable len {}
86) on the runtime class behind {}
87 (method `{}
88`)",
89                        1usize,
90                        __vt.len(),
91                        <AkSerializedCallbackHeader as ::unity::ClassIdentity>::NAME,
92                        "Finalize",
93                    )
94                });
95                let __inner: extern "C" fn(AkSerializedCallbackHeader, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
96                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97                __inner(__receiver, __mi)
98            }
99        }
100    }
101    #[doc = "`Dispose()` overload"]
102    fn dispose(self) -> () {
103        unsafe {
104            let __receiver =
105                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            {
107                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
109                    panic!(
110                        "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115                        6usize,
116                        __vt.len(),
117                        <AkSerializedCallbackHeader as ::unity::ClassIdentity>::NAME,
118                        "Dispose",
119                    )
120                });
121                let __inner: extern "C" fn(AkSerializedCallbackHeader, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
122                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123                __inner(__receiver, __mi)
124            }
125        }
126    }
127    #[doc = "`get_pPackage()` overload"]
128    fn get_p_package(self) -> ::unity::IntPtr {
129        unsafe {
130            let __receiver =
131                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x1d049e0usize)as*mut u8, ::unity::IntPtr;
133(AkSerializedCallbackHeader)__receiver)
134        }
135    }
136    #[doc = "`get_pNext()` overload"]
137    fn get_p_next(self) -> crate::root::akserializedcallbackheader::AkSerializedCallbackHeader {
138        unsafe {
139            let __receiver =
140                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x1d04a60usize)as*mut u8,crate::root::akserializedcallbackheader::AkSerializedCallbackHeader;
142(AkSerializedCallbackHeader)__receiver)
143        }
144    }
145    #[doc = "`get_eType()` overload"]
146    fn get_e_type(self) -> crate::root::akcallbacktype::AkCallbackType {
147        unsafe {
148            let __receiver =
149                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x1d04b40usize)as*mut u8,crate::root::akcallbacktype::AkCallbackType;
151(AkSerializedCallbackHeader)__receiver)
152        }
153    }
154    #[doc = "`GetData()` overload"]
155    fn get_data(self) -> ::unity::IntPtr {
156        unsafe {
157            let __receiver =
158                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x1d04bc0usize)as*mut u8, ::unity::IntPtr;
160(AkSerializedCallbackHeader)__receiver)
161        }
162    }
163    #[doc = "`.ctor()` overload"]
164    fn ctor_2(self) -> () {
165        unsafe {
166            let __receiver =
167                <AkSerializedCallbackHeader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x1d04c40usize)as*mut u8,();
169(AkSerializedCallbackHeader)__receiver)
170        }
171    }
172}
173
174#[cfg(feature = "root-akserializedcallbackheader")]
175impl<__T: IAkSerializedCallbackHeader> IAkSerializedCallbackHeaderMethods for __T {}
176
177#[cfg(feature = "root-akserializedcallbackheader")]
178impl AkSerializedCallbackHeader {
179    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
181    }
182
183    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
185    }
186
187    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
189    }
190
191    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
193    }
194
195    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
197    }
198
199    pub fn get_p_package_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
201    }
202
203    pub fn get_p_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
205    }
206
207    pub fn get_e_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
209    }
210
211    pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
213    }
214
215    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
217    }
218}
219
220#[cfg(feature = "root-akserializedcallbackheader")]
221impl AkSerializedCallbackHeader {
222    #[doc = "Direct (non-virtual) call to `AkSerializedCallbackHeader`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
223    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
224        let __mi = Self::set_c_ptr_method_info();
225        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
226        __inner(this.into(), c_ptr, ::core::option::Option::None)
227    }
228
229    #[doc = "Direct (non-virtual) call to `AkSerializedCallbackHeader`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
231        let __mi = Self::finalize_method_info();
232        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
233        __inner(this.into(), ::core::option::Option::None)
234    }
235
236    #[doc = "Direct (non-virtual) call to `AkSerializedCallbackHeader`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
237    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
238        let __mi = Self::dispose_method_info();
239        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
240        __inner(this.into(), ::core::option::Option::None)
241    }
242}
243
244#[cfg(feature = "root-akserializedcallbackheader")]
245impl AkSerializedCallbackHeader {
246    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
247    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
248        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
249            panic!(
250                "{}
251::{}
252 failed to instantiate",
253                ::core::stringify!(AkSerializedCallbackHeader),
254                ::core::stringify!(new),
255            )
256        });
257        <Self as IAkSerializedCallbackHeaderMethods>::ctor(this, c_ptr, c_memory_own);
258        this
259    }
260
261    #[doc = "`.ctor()` — no args"]
262    pub fn new_2() -> Self {
263        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
264            panic!(
265                "{}
266::{}
267 failed to instantiate",
268                ::core::stringify!(AkSerializedCallbackHeader),
269                ::core::stringify!(new_2),
270            )
271        });
272        <Self as IAkSerializedCallbackHeaderMethods>::ctor_2(this);
273        this
274    }
275}
276
277#[cfg(feature = "root-akserializedcallbackheader")]
278#[doc(hidden)]
279pub mod prelude {
280    pub use super::{AkSerializedCallbackHeader, IAkSerializedCallbackHeader, IAkSerializedCallbackHeaderMethods};
281    pub use crate::system::object::IObject;
282    #[cfg(feature = "system-object")]
283    pub use crate::system::object::IObjectMethods;
284}