Skip to main content

engage/generated/app/
memory.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-memory-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/memory/Memory.md"))]
11    #[::unity::class(namespace = "App", name = "Memory")]
12    #[parent(crate::system::object::Object)]
13    pub struct Memory {
14        #[static_field]
15        #[rename(name = "Max")]
16        pub max: i32,
17        #[static_field]
18        #[rename(name = "s_Fill")]
19        pub s_fill: ::unity::Array<u8>,
20    }
21}
22
23#[cfg(feature = "app-memory-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-memory")]
27impl Memory {
28    #[doc = "`Initialized()` overload"]
29    pub fn initialized() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x25cc150usize)as*mut u8,();
32            )
33        }
34    }
35
36    #[doc = "`Clear(::unity::Array<u8>)` overload"]
37    pub fn clear(values: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x25cc280usize)as*mut u8,();
40(::unity::Array<u8>)::core::convert::Into::into(values))
41        }
42    }
43
44    #[doc = "`Clear(::unity::Array<u8>, i32, i32)` overload"]
45    pub fn clear_2(
46        values: impl ::core::convert::Into<::unity::Array<u8>>,
47        index: impl ::core::convert::Into<i32>,
48        count: impl ::core::convert::Into<i32>,
49    ) -> () {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x25cc290usize)as*mut u8,();
52(::unity::Array<u8>)::core::convert::Into::into(values),(i32)::core::convert::Into::into(index),(i32)::core::convert::Into::into(count))
53        }
54    }
55
56    #[doc = "`Fill(::unity::Array<u8>)` overload"]
57    pub fn fill(values: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x25cc2a0usize)as*mut u8,();
60(::unity::Array<u8>)::core::convert::Into::into(values))
61        }
62    }
63
64    #[doc = "`Fill(::unity::Array<u8>, i32, i32)` overload"]
65    pub fn fill_2(
66        values: impl ::core::convert::Into<::unity::Array<u8>>,
67        index: impl ::core::convert::Into<i32>,
68        count: impl ::core::convert::Into<i32>,
69    ) -> () {
70        unsafe {
71            ::unity::il2cpp_call!((::unity::module_base()+0x25cc320usize)as*mut u8,();
72(::unity::Array<u8>)::core::convert::Into::into(values),(i32)::core::convert::Into::into(index),(i32)::core::convert::Into::into(count))
73        }
74    }
75
76    #[doc = "`.cctor()` overload"]
77    pub fn cctor() -> () {
78        unsafe {
79            ::unity::il2cpp_call!((::unity::module_base()+0x25cc3d0usize)as*mut u8,();
80            )
81        }
82    }
83}
84
85#[cfg(feature = "app-memory")]
86pub trait IMemoryMethods: IMemory {
87    #[doc = "`.ctor()` overload"]
88    fn ctor(self) -> () {
89        unsafe {
90            let __receiver = <Memory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x25cc3c0usize)as*mut u8,();
92(Memory)__receiver)
93        }
94    }
95}
96
97#[cfg(feature = "app-memory")]
98impl<__T: IMemory> IMemoryMethods for __T {}
99
100#[cfg(feature = "app-memory")]
101impl Memory {
102    pub fn initialized_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
104    }
105
106    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
108    }
109
110    pub fn clear_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
112    }
113
114    pub fn fill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
116    }
117
118    pub fn fill_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
120    }
121
122    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
124    }
125
126    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
128    }
129}
130
131#[cfg(feature = "app-memory")]
132impl Memory {
133    #[doc = "`.ctor()` — no args"]
134    pub fn new() -> Self {
135        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
136            panic!(
137                "{}
138::{}
139 failed to instantiate",
140                ::core::stringify!(Memory),
141                ::core::stringify!(new),
142            )
143        });
144        <Self as IMemoryMethods>::ctor(this);
145        this
146    }
147}
148
149#[cfg(feature = "app-memory")]
150#[doc(hidden)]
151pub mod prelude {
152    pub use super::{IMemory, IMemoryMethods, Memory};
153    pub use crate::system::object::IObject;
154    #[cfg(feature = "system-object")]
155    pub use crate::system::object::IObjectMethods;
156}