Skip to main content

engage/generated/unity_engine/rendering/universal/internal/
bitarray_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-internal-bitarray_2-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/universal/internal/bitarray_2/BitArray_2.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct BitArray_2 {}
17    impl ::unity::ClassIdentity for BitArray_2 {
18        const NAME: &'static str = "BitArray";
19        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal.Internal";
20
21        fn class() -> ::unity::Class {
22            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24        }
25    }
26    impl ::unity::IlType for BitArray_2 {
27        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29        }
30    }
31}
32
33#[cfg(feature = "unity_engine-rendering-universal-internal-bitarray_2-types")]
34pub use __types::*;
35
36#[cfg(feature = "unity_engine-rendering-universal-internal-bitarray_2")]
37impl BitArray_2 {
38    #[doc = "`Dispose()` overload"]
39    pub fn dispose(&mut self) -> () {
40        unsafe {
41            ::unity::il2cpp_call!((::unity::module_base()+0x2a3d290usize)as*mut u8,();
42(*mut BitArray_2)self as*mut BitArray_2)
43        }
44    }
45
46    #[doc = "`Clear()` overload"]
47    pub fn clear(&mut self) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2a3d2f0usize)as*mut u8,();
50(*mut BitArray_2)self as*mut BitArray_2)
51        }
52    }
53
54    #[doc = "`IsSet(i32)` overload"]
55    pub fn is_set(&mut self, bit_index: impl ::core::convert::Into<i32>) -> bool {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x2a3d320usize)as*mut u8,bool;
58(*mut BitArray_2)self as*mut BitArray_2,(i32)::core::convert::Into::into(bit_index))
59        }
60    }
61
62    #[doc = "`Set(i32, bool)` overload"]
63    pub fn set(&mut self, bit_index: impl ::core::convert::Into<i32>, val: impl ::core::convert::Into<bool>) -> () {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x2a3d340usize)as*mut u8,();
66(*mut BitArray_2)self as*mut BitArray_2,(i32)::core::convert::Into::into(bit_index),(bool)::core::convert::Into::into(val))
67        }
68    }
69}
70
71#[cfg(feature = "unity_engine-rendering-universal-internal-bitarray_2")]
72impl BitArray_2 {
73    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
75    }
76
77    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
79    }
80
81    pub fn is_set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
83    }
84
85    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
87    }
88}
89
90#[cfg(feature = "unity_engine-rendering-universal-internal-bitarray_2")]
91#[doc(hidden)]
92pub mod prelude {
93    pub use super::BitArray_2;
94    #[cfg(feature = "system-object")]
95    pub use crate::system::object::IObjectMethods;
96    #[cfg(feature = "system-valuetype")]
97    pub use crate::system::valuetype::IValueTypeMethods;
98    pub use crate::system::{object::IObject, valuetype::IValueType};
99}