Skip to main content

engage/generated/root/
akstreammgrsettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akstreammgrsettings-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/akstreammgrsettings/AkStreamMgrSettings.md"))]
11    #[::unity::class(namespace = "", name = "AkStreamMgrSettings")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkStreamMgrSettings {
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-akstreammgrsettings-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akstreammgrsettings")]
27impl AkStreamMgrSettings {
28    #[doc = "`getCPtr(crate::root::akstreammgrsettings::AkStreamMgrSettings)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akstreammgrsettings::AkStreamMgrSettings>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1d1a800usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akstreammgrsettings::AkStreamMgrSettings)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akstreammgrsettings")]
38pub trait IAkStreamMgrSettingsMethods: IAkStreamMgrSettings {
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 = <AkStreamMgrSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1d23070usize)as*mut u8,();
44(AkStreamMgrSettings)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
45        }
46    }
47    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
48    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
49        unsafe {
50            let __receiver = <AkStreamMgrSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            {
52                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
54                    panic!(
55                        "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60                        5usize,
61                        __vt.len(),
62                        <AkStreamMgrSettings as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkStreamMgrSettings, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
67                    ::core::mem::transmute(__vi.method_ptr);
68                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
70            }
71        }
72    }
73    #[doc = "`Finalize()` overload"]
74    fn finalize(self) -> () {
75        unsafe {
76            let __receiver = <AkStreamMgrSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            {
78                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
80                    panic!(
81                        "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86                        1usize,
87                        __vt.len(),
88                        <AkStreamMgrSettings as ::unity::ClassIdentity>::NAME,
89                        "Finalize",
90                    )
91                });
92                let __inner: extern "C" fn(AkStreamMgrSettings, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
93                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94                __inner(__receiver, __mi)
95            }
96        }
97    }
98    #[doc = "`Dispose()` overload"]
99    fn dispose(self) -> () {
100        unsafe {
101            let __receiver = <AkStreamMgrSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        6usize,
112                        __vt.len(),
113                        <AkStreamMgrSettings as ::unity::ClassIdentity>::NAME,
114                        "Dispose",
115                    )
116                });
117                let __inner: extern "C" fn(AkStreamMgrSettings, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
118                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119                __inner(__receiver, __mi)
120            }
121        }
122    }
123}
124
125#[cfg(feature = "root-akstreammgrsettings")]
126impl<__T: IAkStreamMgrSettings> IAkStreamMgrSettingsMethods for __T {}
127
128#[cfg(feature = "root-akstreammgrsettings")]
129impl AkStreamMgrSettings {
130    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
132    }
133
134    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
136    }
137
138    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
140    }
141
142    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
144    }
145
146    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
148    }
149}
150
151#[cfg(feature = "root-akstreammgrsettings")]
152impl AkStreamMgrSettings {
153    #[doc = "Direct (non-virtual) call to `AkStreamMgrSettings`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
154    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
155        let __mi = Self::set_c_ptr_method_info();
156        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
157        __inner(this.into(), c_ptr, ::core::option::Option::None)
158    }
159
160    #[doc = "Direct (non-virtual) call to `AkStreamMgrSettings`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
161    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
162        let __mi = Self::finalize_method_info();
163        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
164        __inner(this.into(), ::core::option::Option::None)
165    }
166
167    #[doc = "Direct (non-virtual) call to `AkStreamMgrSettings`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
168    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
169        let __mi = Self::dispose_method_info();
170        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
171        __inner(this.into(), ::core::option::Option::None)
172    }
173}
174
175#[cfg(feature = "root-akstreammgrsettings")]
176impl AkStreamMgrSettings {
177    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
178    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
179        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
180            panic!(
181                "{}
182::{}
183 failed to instantiate",
184                ::core::stringify!(AkStreamMgrSettings),
185                ::core::stringify!(new),
186            )
187        });
188        <Self as IAkStreamMgrSettingsMethods>::ctor(this, c_ptr, c_memory_own);
189        this
190    }
191}
192
193#[cfg(feature = "root-akstreammgrsettings")]
194#[doc(hidden)]
195pub mod prelude {
196    pub use super::{AkStreamMgrSettings, IAkStreamMgrSettings, IAkStreamMgrSettingsMethods};
197    pub use crate::system::object::IObject;
198    #[cfg(feature = "system-object")]
199    pub use crate::system::object::IObjectMethods;
200}