Skip to main content

engage/generated/root/
akexternalsourceinfoarray.rs

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