Skip to main content

engage/generated/system/collections/
hashhelpers.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-hashhelpers-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/system/collections/hashhelpers/HashHelpers.md"))]
11    #[::unity::class(namespace = "System.Collections", name = "HashHelpers")]
12    #[parent(crate::system::object::Object)]
13    pub struct HashHelpers {
14        #[static_field]
15        #[rename(name = "primes")]
16        pub primes: ::unity::Array<i32>,
17        #[static_field]
18        #[rename(name = "s_SerializationInfoTable")]
19        pub s_serialization_info_table: ::unity::IlInstance,
20    }
21}
22
23#[cfg(feature = "system-collections-hashhelpers-types")]
24pub use __types::*;
25
26#[cfg(feature = "system-collections-hashhelpers")]
27impl HashHelpers {
28    #[doc = "`IsPrime(i32)` overload"]
29    pub fn is_prime(candidate: impl ::core::convert::Into<i32>) -> bool {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x381e1b0usize)as*mut u8,bool;
32(i32)::core::convert::Into::into(candidate))
33        }
34    }
35
36    #[doc = "`GetPrime(i32)` overload"]
37    pub fn get_prime(min: impl ::core::convert::Into<i32>) -> i32 {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x381e2a0usize)as*mut u8,i32;
40(i32)::core::convert::Into::into(min))
41        }
42    }
43
44    #[doc = "`ExpandPrime(i32)` overload"]
45    pub fn expand_prime(old_size: impl ::core::convert::Into<i32>) -> i32 {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x381e4f0usize)as*mut u8,i32;
48(i32)::core::convert::Into::into(old_size))
49        }
50    }
51
52    #[doc = "`.cctor()` overload"]
53    pub fn cctor() -> () {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x381e590usize)as*mut u8,();
56            )
57        }
58    }
59}
60
61#[cfg(feature = "system-collections-hashhelpers")]
62impl HashHelpers {
63    pub fn is_prime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
65    }
66
67    pub fn get_prime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
69    }
70
71    pub fn expand_prime_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
73    }
74
75    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
77    }
78}
79
80#[cfg(feature = "system-collections-hashhelpers")]
81#[doc(hidden)]
82pub mod prelude {
83    pub use super::{HashHelpers, IHashHelpers};
84    pub use crate::system::object::IObject;
85    #[cfg(feature = "system-object")]
86    pub use crate::system::object::IObjectMethods;
87}