Skip to main content

engage/generated/unity_engine/rendering/
coreunsafeutils.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-coreunsafeutils-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/coreunsafeutils/CoreUnsafeUtils.md"))]
14    #[::unity::class(namespace = "UnityEngine.Rendering", name = "CoreUnsafeUtils")]
15    #[parent(crate::system::object::Object)]
16    pub struct CoreUnsafeUtils {}
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/coreunsafeutils/CoreUnsafeUtils_DefaultKeyGetter_1.md"))]
19    #[repr(C)]
20    #[derive(::core::clone::Clone, ::core::marker::Copy)]
21    pub struct CoreUnsafeUtils_DefaultKeyGetter_1<T0> {
22        pub _phantom: ::core::marker::PhantomData<(T0,)>,
23    }
24    impl<T0: ::unity::ClassIdentity> ::unity::ClassIdentity for CoreUnsafeUtils_DefaultKeyGetter_1<T0> {
25        const NAME: &'static str = "CoreUnsafeUtils.DefaultKeyGetter`1";
26        const NAMESPACE: &'static str = "UnityEngine.Rendering";
27
28        fn class() -> ::unity::Class {
29            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
30            *CACHE.get_or_init(|| {
31                ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
32                    .make_generic(&[<T0 as ::unity::ClassIdentity>::class()])
33                    .expect("generic instantiation")
34            })
35        }
36    }
37    impl<T0: ::unity::ClassIdentity> ::unity::IlType for CoreUnsafeUtils_DefaultKeyGetter_1<T0> {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42
43    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/coreunsafeutils/CoreUnsafeUtils_IKeyGetter_2.md"))]
44    #[::unity::class(namespace = "UnityEngine.Rendering", name = "CoreUnsafeUtils.IKeyGetter`2")]
45    pub struct CoreUnsafeUtils_IKeyGetter_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {}
46
47    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/coreunsafeutils/CoreUnsafeUtils_UintKeyGetter.md"))]
48    #[repr(C)]
49    #[derive(::core::clone::Clone, ::core::marker::Copy)]
50    pub struct CoreUnsafeUtils_UintKeyGetter {}
51    impl ::unity::ClassIdentity for CoreUnsafeUtils_UintKeyGetter {
52        const NAME: &'static str = "CoreUnsafeUtils.UintKeyGetter";
53        const NAMESPACE: &'static str = "UnityEngine.Rendering";
54
55        fn class() -> ::unity::Class {
56            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
57            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
58        }
59    }
60    impl ::unity::IlType for CoreUnsafeUtils_UintKeyGetter {
61        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
62            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
63        }
64    }
65
66    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/coreunsafeutils/CoreUnsafeUtils_FixedBufferStringQueue.md"))]
67    #[repr(C)]
68    #[derive(::core::clone::Clone, ::core::marker::Copy)]
69    pub struct CoreUnsafeUtils_FixedBufferStringQueue {}
70    impl ::unity::ClassIdentity for CoreUnsafeUtils_FixedBufferStringQueue {
71        const NAME: &'static str = "CoreUnsafeUtils.FixedBufferStringQueue";
72        const NAMESPACE: &'static str = "UnityEngine.Rendering";
73
74        fn class() -> ::unity::Class {
75            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
76            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
77        }
78    }
79    impl ::unity::IlType for CoreUnsafeUtils_FixedBufferStringQueue {
80        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
81            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
82        }
83    }
84}
85
86#[cfg(feature = "unity_engine-rendering-coreunsafeutils-types")]
87pub use __types::*;
88
89#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
90impl CoreUnsafeUtils {
91    #[doc = "`QuickSort(::unity::Array<u32>, i32, i32)` overload"]
92    pub fn quick_sort(
93        arr: impl ::core::convert::Into<::unity::Array<u32>>,
94        left: impl ::core::convert::Into<i32>,
95        right: impl ::core::convert::Into<i32>,
96    ) -> () {
97        unsafe {
98            ::unity::il2cpp_call!((::unity::module_base()+0x3531800usize)as*mut u8,();
99(::unity::Array<u32>)::core::convert::Into::into(arr),(i32)::core::convert::Into::into(left),(i32)::core::convert::Into::into(right))
100        }
101    }
102
103    #[doc = "`HaveDuplicates(::unity::Array<i32>)` overload"]
104    pub fn have_duplicates(arr: impl ::core::convert::Into<::unity::Array<i32>>) -> bool {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x35319a0usize)as*mut u8,bool;
107(::unity::Array<i32>)::core::convert::Into::into(arr))
108        }
109    }
110}
111
112#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
113impl CoreUnsafeUtils {
114    pub fn quick_sort_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
116    }
117
118    pub fn have_duplicates_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
120    }
121}
122
123#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
124#[::unity::methods(value)]
125impl<T0: ::unity::ClassIdentity> CoreUnsafeUtils_DefaultKeyGetter_1<T0> {
126    #[doc = "`Get(*mutT0)` overload"]
127    #[method(name = "Get", args = 1)]
128    pub fn get(self, v: *mut T0) -> T0;
129}
130
131#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
132#[::unity::methods]
133impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> CoreUnsafeUtils_IKeyGetter_2<T0, T1> {
134    #[doc = "`Get(*mutT0)` overload"]
135    #[method(name = "Get", args = 1, abstract_dispatch)]
136    pub fn get(self, v: *mut T0) -> T1;
137}
138
139#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
140impl CoreUnsafeUtils_UintKeyGetter {
141    #[doc = "`Get(*mutu32)` overload"]
142    pub fn get(&mut self) -> (u32, u32) {
143        unsafe {
144            let mut __out_0 = ::core::mem::MaybeUninit::<u32>::uninit();
145            let __ret = {
146                ::unity::il2cpp_call!((::unity::module_base()+0x33e9b60usize)as*mut u8,u32;
147(*mut CoreUnsafeUtils_UintKeyGetter)self as*mut CoreUnsafeUtils_UintKeyGetter,(*mut u32)__out_0.as_mut_ptr())
148            };
149            (__ret, __out_0.assume_init())
150        }
151    }
152}
153
154#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
155impl CoreUnsafeUtils_UintKeyGetter {
156    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
158    }
159}
160
161#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
162impl CoreUnsafeUtils_FixedBufferStringQueue {
163    #[doc = "`get_Count()` overload"]
164    pub fn get_count(&mut self) -> i32 {
165        unsafe {
166            ::unity::il2cpp_call!((::unity::module_base()+0x33e9990usize)as*mut u8,i32;
167(*mut CoreUnsafeUtils_FixedBufferStringQueue)self as*mut CoreUnsafeUtils_FixedBufferStringQueue)
168        }
169    }
170
171    #[doc = "`set_Count(i32)` overload"]
172    pub fn set_count(&mut self, value: impl ::core::convert::Into<i32>) -> () {
173        unsafe {
174            ::unity::il2cpp_call!((::unity::module_base()+0x33e99a0usize)as*mut u8,();
175(*mut CoreUnsafeUtils_FixedBufferStringQueue)self as*mut CoreUnsafeUtils_FixedBufferStringQueue,(i32)::core::convert::Into::into(value))
176        }
177    }
178
179    #[doc = "`TryPush(::unity::Il2CppString)` overload"]
180    pub fn try_push(&mut self, v: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
181        unsafe {
182            ::unity::il2cpp_call!((::unity::module_base()+0x33e9a00usize)as*mut u8,bool;
183(*mut CoreUnsafeUtils_FixedBufferStringQueue)self as*mut CoreUnsafeUtils_FixedBufferStringQueue,(::unity::Il2CppString)::core::convert::Into::into(v))
184        }
185    }
186
187    #[doc = "`TryPop(*mut::unity::Il2CppString)` overload"]
188    pub fn try_pop(&mut self) -> (bool, ::unity::Il2CppString) {
189        unsafe {
190            let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Il2CppString>::uninit();
191            let __ret = {
192                ::unity::il2cpp_call!((::unity::module_base()+0x33e9ac0usize)as*mut u8,bool;
193(*mut CoreUnsafeUtils_FixedBufferStringQueue)self as*mut CoreUnsafeUtils_FixedBufferStringQueue,(*mut::unity::Il2CppString)__out_0.as_mut_ptr())
194            };
195            (__ret, __out_0.assume_init())
196        }
197    }
198
199    #[doc = "`Clear()` overload"]
200    pub fn clear(&mut self) -> () {
201        unsafe {
202            ::unity::il2cpp_call!((::unity::module_base()+0x33e99e0usize)as*mut u8,();
203(*mut CoreUnsafeUtils_FixedBufferStringQueue)self as*mut CoreUnsafeUtils_FixedBufferStringQueue)
204        }
205    }
206}
207
208#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
209impl CoreUnsafeUtils_FixedBufferStringQueue {
210    pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
212    }
213
214    pub fn set_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
216    }
217
218    pub fn try_push_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
220    }
221
222    pub fn try_pop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
224    }
225
226    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
228    }
229}
230
231#[cfg(feature = "unity_engine-rendering-coreunsafeutils")]
232#[doc(hidden)]
233pub mod prelude {
234    pub use super::{
235        CoreUnsafeUtils, CoreUnsafeUtils_DefaultKeyGetter_1, CoreUnsafeUtils_FixedBufferStringQueue, CoreUnsafeUtils_IKeyGetter_2,
236        CoreUnsafeUtils_UintKeyGetter, ICoreUnsafeUtils, ICoreUnsafeUtils_IKeyGetter_2, ICoreUnsafeUtils_IKeyGetter_2Methods,
237    };
238    #[cfg(feature = "system-object")]
239    pub use crate::system::object::IObjectMethods;
240    #[cfg(feature = "system-valuetype")]
241    pub use crate::system::valuetype::IValueTypeMethods;
242    pub use crate::system::{object::IObject, valuetype::IValueType};
243}