engage/generated/app/
filedata.rs1#[cfg(feature = "app-filedata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::filecommon::{FileCommon, IFileCommon},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/filedata/FileData.md"))]
14 #[::unity::class(namespace = "App", name = "FileData")]
15 #[parent(crate::app::filecommon::FileCommon)]
16 pub struct FileData {
17 #[offset(16)]
18 #[rename(name = "m_State")]
19 pub m_state: crate::app::filecommon::FileCommon_State,
20 #[offset(24)]
21 #[rename(name = "m_Path")]
22 pub m_path: ::unity::Il2CppString,
23 #[offset(32)]
24 #[rename(name = "m_Data")]
25 pub m_data: ::unity::Array<u8>,
26 #[offset(40)]
27 #[rename(name = "m_Refer")]
28 pub m_refer: crate::app::bindholder::BindHolder,
29 }
30}
31
32#[cfg(feature = "app-filedata-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-filedata")]
36pub trait IFileDataMethods: IFileData {
37 #[doc = "`GetPath()` overload"]
38 fn get_path(self) -> ::unity::Il2CppString {
39 unsafe {
40 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x26e8a10usize)as*mut u8, ::unity::Il2CppString;
42(FileData)__receiver)
43 }
44 }
45 #[doc = "`GetData()` overload"]
46 fn get_data(self) -> ::unity::Array<u8> {
47 unsafe {
48 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x26e8a20usize)as*mut u8, ::unity::Array<u8> ;
50(FileData)__receiver)
51 }
52 }
53 #[doc = "`GetSize()` overload"]
54 fn get_size(self) -> i32 {
55 unsafe {
56 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x26e8a30usize)as*mut u8,i32;
58(FileData)__receiver)
59 }
60 }
61 #[doc = "`Dump(i32)` overload"]
62 fn dump(self, index: impl ::core::convert::Into<i32>) -> () {
63 unsafe {
64 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x26e8a50usize)as*mut u8,();
66(FileData)__receiver,(i32)::core::convert::Into::into(index))
67 }
68 }
69 #[doc = "`Dispose()` overload"]
70 fn dispose(self) -> () {
71 unsafe {
72 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 {
74 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
75 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
76 panic!(
77 "unity: virtual slot {}
78 out of range (vtable len {}
79) on the runtime class behind {}
80 (method `{}
81`)",
82 4usize,
83 __vt.len(),
84 <FileData as ::unity::ClassIdentity>::NAME,
85 "Dispose",
86 )
87 });
88 let __inner: extern "C" fn(FileData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
89 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
90 __inner(__receiver, __mi)
91 }
92 }
93 }
94 #[doc = "`.ctor()` overload"]
95 fn ctor(self) -> () {
96 unsafe {
97 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x26e8de0usize)as*mut u8,();
99(FileData)__receiver)
100 }
101 }
102 #[doc = "`Finalize()` overload"]
103 fn finalize(self) -> () {
104 unsafe {
105 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 1usize,
116 __vt.len(),
117 <FileData as ::unity::ClassIdentity>::NAME,
118 "Finalize",
119 )
120 });
121 let __inner: extern "C" fn(FileData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
122 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123 __inner(__receiver, __mi)
124 }
125 }
126 }
127 #[doc = "`OnBuild()` overload"]
128 fn on_build(self) -> () {
129 unsafe {
130 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 {
132 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
134 panic!(
135 "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140 5usize,
141 __vt.len(),
142 <FileData as ::unity::ClassIdentity>::NAME,
143 "OnBuild",
144 )
145 });
146 let __inner: extern "C" fn(FileData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
147 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
148 __inner(__receiver, __mi)
149 }
150 }
151 }
152 #[doc = "`OnDispose()` overload"]
153 fn on_dispose(self) -> () {
154 unsafe {
155 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 {
157 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
158 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
159 panic!(
160 "unity: virtual slot {}
161 out of range (vtable len {}
162) on the runtime class behind {}
163 (method `{}
164`)",
165 6usize,
166 __vt.len(),
167 <FileData as ::unity::ClassIdentity>::NAME,
168 "OnDispose",
169 )
170 });
171 let __inner: extern "C" fn(FileData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
172 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
173 __inner(__receiver, __mi)
174 }
175 }
176 }
177 #[doc = "`GetCrc32()` overload"]
178 fn get_crc32(self) -> u32 {
179 unsafe {
180 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181 ::unity::il2cpp_call!((::unity::module_base()+0x26e8d10usize)as*mut u8,u32;
182(FileData)__receiver)
183 }
184 }
185 #[doc = "`IsValid()` overload"]
186 fn is_valid(self) -> bool {
187 unsafe {
188 let __receiver = <FileData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x26e9040usize)as*mut u8,bool;
190(FileData)__receiver)
191 }
192 }
193}
194
195#[cfg(feature = "app-filedata")]
196impl<__T: IFileData> IFileDataMethods for __T {}
197
198#[cfg(feature = "app-filedata")]
199impl FileData {
200 pub fn get_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
202 }
203
204 pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
206 }
207
208 pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
210 }
211
212 pub fn dump_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
214 }
215
216 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
218 }
219
220 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
222 }
223
224 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
226 }
227
228 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
230 }
231
232 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
234 }
235
236 pub fn get_crc32_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
238 }
239
240 pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
242 }
243}
244
245#[cfg(feature = "app-filedata")]
246impl FileData {
247 #[doc = "Direct (non-virtual) call to `FileData`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
248 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
249 let __mi = Self::dispose_method_info();
250 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
251 __inner(this.into(), ::core::option::Option::None)
252 }
253
254 #[doc = "Direct (non-virtual) call to `FileData`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
255 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
256 let __mi = Self::finalize_method_info();
257 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
258 __inner(this.into(), ::core::option::Option::None)
259 }
260
261 #[doc = "Direct (non-virtual) call to `FileData`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
262 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
263 let __mi = Self::on_build_method_info();
264 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
265 __inner(this.into(), ::core::option::Option::None)
266 }
267
268 #[doc = "Direct (non-virtual) call to `FileData`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
270 let __mi = Self::on_dispose_method_info();
271 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
272 __inner(this.into(), ::core::option::Option::None)
273 }
274}
275
276#[cfg(feature = "app-filedata")]
277impl FileData {
278 #[doc = "`.ctor()` — no args"]
279 pub fn new() -> Self {
280 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
281 panic!(
282 "{}
283::{}
284 failed to instantiate",
285 ::core::stringify!(FileData),
286 ::core::stringify!(new),
287 )
288 });
289 <Self as IFileDataMethods>::ctor(this);
290 this
291 }
292}
293
294#[cfg(feature = "app-filedata")]
295#[doc(hidden)]
296pub mod prelude {
297 pub use super::{FileData, IFileData, IFileDataMethods};
298 #[cfg(feature = "app-filecommon")]
299 pub use crate::app::filecommon::IFileCommonMethods;
300 #[cfg(feature = "system-object")]
301 pub use crate::system::object::IObjectMethods;
302 pub use crate::{app::filecommon::IFileCommon, system::object::IObject};
303}