Skip to main content

engage/generated/root/
akdurationcallbackinfo.rs

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