Skip to main content

engage/generated/app/
crc32.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-crc32-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/app/crc32/Crc32.md"))]
11    #[::unity::class(namespace = "App", name = "Crc32")]
12    #[parent(crate::system::object::Object)]
13    pub struct Crc32 {
14        #[static_field]
15        #[rename(name = "s_Table")]
16        pub s_table: ::unity::Array<u32>,
17    }
18}
19
20#[cfg(feature = "app-crc32-types")]
21pub use __types::*;
22
23#[cfg(feature = "app-crc32")]
24impl Crc32 {
25    #[doc = "`Initialize()` overload"]
26    pub fn initialize() -> () {
27        unsafe {
28            ::unity::il2cpp_call!((::unity::module_base()+0x2545930usize)as*mut u8,();
29            )
30        }
31    }
32
33    #[doc = "`Calculate(::unity::Array<u8>)` overload"]
34    pub fn calculate(buf: impl ::core::convert::Into<::unity::Array<u8>>) -> u32 {
35        unsafe {
36            ::unity::il2cpp_call!((::unity::module_base()+0x2545a80usize)as*mut u8,u32;
37(::unity::Array<u8>)::core::convert::Into::into(buf))
38        }
39    }
40
41    #[doc = "`Calculate(::unity::Array<u8>, i32)` overload"]
42    pub fn calculate_2(buf: impl ::core::convert::Into<::unity::Array<u8>>, len: impl ::core::convert::Into<i32>) -> u32 {
43        unsafe {
44            ::unity::il2cpp_call!((::unity::module_base()+0x2545ab0usize)as*mut u8,u32;
45(::unity::Array<u8>)::core::convert::Into::into(buf),(i32)::core::convert::Into::into(len))
46        }
47    }
48
49    #[doc = "`UpdateCrc(u32, ::unity::Array<u8>, i32)` overload"]
50    pub fn update_crc(
51        crc: impl ::core::convert::Into<u32>,
52        buf: impl ::core::convert::Into<::unity::Array<u8>>,
53        len: impl ::core::convert::Into<i32>,
54    ) -> u32 {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x2545ae0usize)as*mut u8,u32;
57(u32)::core::convert::Into::into(crc),(::unity::Array<u8>)::core::convert::Into::into(buf),(i32)::core::convert::Into::into(len))
58        }
59    }
60}
61
62#[cfg(feature = "app-crc32")]
63impl Crc32 {
64    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
66    }
67
68    pub fn calculate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
70    }
71
72    pub fn calculate_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
74    }
75
76    pub fn update_crc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
78    }
79}
80
81#[cfg(feature = "app-crc32")]
82#[doc(hidden)]
83pub mod prelude {
84    pub use super::{Crc32, ICrc32};
85    pub use crate::system::object::IObject;
86    #[cfg(feature = "system-object")]
87    pub use crate::system::object::IObjectMethods;
88}