Skip to main content

engage/generated/moon_sharp/interpreter/core_lib/io/
fileuserdatabase.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        moon_sharp::interpreter::refidobject::{IRefIdObject, RefIdObject},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/core_lib/io/fileuserdatabase/FileUserDataBase.md"))]
14    #[::unity::class(namespace = "MoonSharp.Interpreter.CoreLib.IO", name = "FileUserDataBase")]
15    #[parent(crate::moon_sharp::interpreter::refidobject::RefIdObject)]
16    pub struct FileUserDataBase {}
17}
18
19#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase-types")]
20pub use __types::*;
21
22#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __FileUserDataBase_unity_raw {
26    use super::*;
27    #[doc(hidden)]
28    #[allow(non_snake_case)]
29    pub mod __lookup_lines {
30        use super::*;
31        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
32            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
33                <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
34                <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
35            ];
36            ::unity::lookup::method_info_on_class_with_signature(
37                <FileUserDataBase as ::unity::ClassIdentity>::class(),
38                "lines",
39                2,
40                param_types,
41                false,
42            )
43        });
44        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
45            match &*METHOD {
46                ::core::result::Result::Ok(mi) => *mi,
47                ::core::result::Result::Err(e) => {
48                    panic!(
49                        "method lookup failed: {}
50::{}
51: {}
52",
53                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
54                        "lines",
55                        e
56                    )
57                },
58            }
59        }
60    }
61    #[doc(hidden)]
62    #[allow(non_snake_case)]
63    pub mod __lookup_read {
64        use super::*;
65        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
66            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
67                <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
68                <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
69            ];
70            ::unity::lookup::method_info_on_class_with_signature(<FileUserDataBase as ::unity::ClassIdentity>::class(), "read", 2, param_types, false)
71        });
72        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73            match &*METHOD {
74                ::core::result::Result::Ok(mi) => *mi,
75                ::core::result::Result::Err(e) => {
76                    panic!(
77                        "method lookup failed: {}
78::{}
79: {}
80",
81                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
82                        "read",
83                        e
84                    )
85                },
86            }
87        }
88    }
89    #[doc(hidden)]
90    #[allow(non_snake_case)]
91    pub mod __lookup_write {
92        use super::*;
93        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
94            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
95                <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
96                <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
97            ];
98            ::unity::lookup::method_info_on_class_with_signature(
99                <FileUserDataBase as ::unity::ClassIdentity>::class(),
100                "write",
101                2,
102                param_types,
103                false,
104            )
105        });
106        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107            match &*METHOD {
108                ::core::result::Result::Ok(mi) => *mi,
109                ::core::result::Result::Err(e) => {
110                    panic!(
111                        "method lookup failed: {}
112::{}
113: {}
114",
115                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
116                        "write",
117                        e
118                    )
119                },
120            }
121        }
122    }
123    #[doc(hidden)]
124    #[allow(non_snake_case)]
125    pub mod __lookup_close {
126        use super::*;
127        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
128            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
129                <crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext as ::unity::IlType>::il_type(),
130                <crate::moon_sharp::interpreter::callbackarguments::CallbackArguments as ::unity::IlType>::il_type(),
131            ];
132            ::unity::lookup::method_info_on_class_with_signature(
133                <FileUserDataBase as ::unity::ClassIdentity>::class(),
134                "close",
135                2,
136                param_types,
137                false,
138            )
139        });
140        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141            match &*METHOD {
142                ::core::result::Result::Ok(mi) => *mi,
143                ::core::result::Result::Err(e) => {
144                    panic!(
145                        "method lookup failed: {}
146::{}
147: {}
148",
149                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
150                        "close",
151                        e
152                    )
153                },
154            }
155        }
156    }
157    #[doc(hidden)]
158    #[allow(non_snake_case)]
159    pub mod __lookup_is_numeric_char {
160        use super::*;
161        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
162            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
163                &[<u16 as ::unity::IlType>::il_type(), <::unity::Il2CppString as ::unity::IlType>::il_type()];
164            ::unity::lookup::method_info_on_class_with_signature(
165                <FileUserDataBase as ::unity::ClassIdentity>::class(),
166                "IsNumericChar",
167                2,
168                param_types,
169                false,
170            )
171        });
172        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173            match &*METHOD {
174                ::core::result::Result::Ok(mi) => *mi,
175                ::core::result::Result::Err(e) => {
176                    panic!(
177                        "method lookup failed: {}
178::{}
179: {}
180",
181                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
182                        "IsNumericChar",
183                        e
184                    )
185                },
186            }
187        }
188    }
189    #[doc(hidden)]
190    #[allow(non_snake_case)]
191    pub mod __lookup_ctor {
192        use super::*;
193        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
194            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
195            ::unity::lookup::method_info_on_class_with_signature(
196                <FileUserDataBase as ::unity::ClassIdentity>::class(),
197                ".ctor",
198                0,
199                param_types,
200                false,
201            )
202        });
203        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204            match &*METHOD {
205                ::core::result::Result::Ok(mi) => *mi,
206                ::core::result::Result::Err(e) => {
207                    panic!(
208                        "method lookup failed: {}
209::{}
210: {}
211",
212                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
213                        ".ctor",
214                        e
215                    )
216                },
217            }
218        }
219    }
220}
221
222#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase")]
223pub trait IFileUserDataBaseMethods: IFileUserDataBase {
224    #[doc = "`lines(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
225    fn lines(
226        self,
227        execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
228        args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
229    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
230        unsafe {
231            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            ::unity::il2cpp_call!(__FileUserDataBase_unity_raw::__lookup_lines::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
233(FileUserDataBase)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
234        }
235    }
236    #[doc = "`read(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
237    fn read(
238        self,
239        execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
240        args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
241    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
242        unsafe {
243            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244            ::unity::il2cpp_call!(__FileUserDataBase_unity_raw::__lookup_read::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
245(FileUserDataBase)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
246        }
247    }
248    #[doc = "`write(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
249    fn write(
250        self,
251        execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
252        args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
253    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
254        unsafe {
255            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
256            ::unity::il2cpp_call!(__FileUserDataBase_unity_raw::__lookup_write::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
257(FileUserDataBase)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
258        }
259    }
260    #[doc = "`close(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)` overload"]
261    fn close(
262        self,
263        execution_context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
264        args: impl ::core::convert::Into<crate::moon_sharp::interpreter::callbackarguments::CallbackArguments>,
265    ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
266        unsafe {
267            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268            ::unity::il2cpp_call!(__FileUserDataBase_unity_raw::__lookup_close::get_method_info().method_ptr,crate::moon_sharp::interpreter::dynvalue::DynValue;
269(FileUserDataBase)__receiver,(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)::core::convert::Into::into(execution_context),(crate::moon_sharp::interpreter::callbackarguments::CallbackArguments)::core::convert::Into::into(args))
270        }
271    }
272    #[doc = "`IsNumericChar(u16, ::unity::Il2CppString)` overload"]
273    fn is_numeric_char(self, c: impl ::core::convert::Into<u16>, num_as_far: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
274        unsafe {
275            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276            ::unity::il2cpp_call!(__FileUserDataBase_unity_raw::__lookup_is_numeric_char::get_method_info().method_ptr,bool;
277(FileUserDataBase)__receiver,(u16)::core::convert::Into::into(c),(::unity::Il2CppString)::core::convert::Into::into(num_as_far))
278        }
279    }
280    #[doc = "`Eof()` overload"]
281    fn eof(self) -> bool {
282        unsafe {
283            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284            {
285                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
286                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
287                    panic!(
288                        "unity: virtual slot {}
289 out of range (vtable len {}
290) on the runtime class behind {}
291 (method `{}
292`)",
293                        4usize,
294                        __vt.len(),
295                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
296                        "Eof",
297                    )
298                });
299                let __inner: extern "C" fn(FileUserDataBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
300                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
301                __inner(__receiver, __mi)
302            }
303        }
304    }
305    #[doc = "`ReadLine()` overload"]
306    fn read_line(self) -> ::unity::Il2CppString {
307        unsafe {
308            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309            {
310                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
311                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
312                    panic!(
313                        "unity: virtual slot {}
314 out of range (vtable len {}
315) on the runtime class behind {}
316 (method `{}
317`)",
318                        5usize,
319                        __vt.len(),
320                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
321                        "ReadLine",
322                    )
323                });
324                let __inner: extern "C" fn(FileUserDataBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
325                    ::core::mem::transmute(__vi.method_ptr);
326                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
327                __inner(__receiver, __mi)
328            }
329        }
330    }
331    #[doc = "`ReadBuffer(i32)` overload"]
332    fn read_buffer(self, p: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
333        unsafe {
334            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
335            {
336                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
337                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
338                    panic!(
339                        "unity: virtual slot {}
340 out of range (vtable len {}
341) on the runtime class behind {}
342 (method `{}
343`)",
344                        6usize,
345                        __vt.len(),
346                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
347                        "ReadBuffer",
348                    )
349                });
350                let __inner: extern "C" fn(FileUserDataBase, i32, ::unity::OptionalMethod) -> ::unity::Il2CppString =
351                    ::core::mem::transmute(__vi.method_ptr);
352                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
353                __inner(__receiver, ::core::convert::Into::into(p), __mi)
354            }
355        }
356    }
357    #[doc = "`ReadToEnd()` overload"]
358    fn read_to_end(self) -> ::unity::Il2CppString {
359        unsafe {
360            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
361            {
362                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
363                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
364                    panic!(
365                        "unity: virtual slot {}
366 out of range (vtable len {}
367) on the runtime class behind {}
368 (method `{}
369`)",
370                        7usize,
371                        __vt.len(),
372                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
373                        "ReadToEnd",
374                    )
375                });
376                let __inner: extern "C" fn(FileUserDataBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
377                    ::core::mem::transmute(__vi.method_ptr);
378                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
379                __inner(__receiver, __mi)
380            }
381        }
382    }
383    #[doc = "`Peek()` overload"]
384    fn peek(self) -> u16 {
385        unsafe {
386            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
387            {
388                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
389                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
390                    panic!(
391                        "unity: virtual slot {}
392 out of range (vtable len {}
393) on the runtime class behind {}
394 (method `{}
395`)",
396                        8usize,
397                        __vt.len(),
398                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
399                        "Peek",
400                    )
401                });
402                let __inner: extern "C" fn(FileUserDataBase, ::unity::OptionalMethod) -> u16 = ::core::mem::transmute(__vi.method_ptr);
403                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
404                __inner(__receiver, __mi)
405            }
406        }
407    }
408    #[doc = "`Write(::unity::Il2CppString)` overload"]
409    fn write_2(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
410        unsafe {
411            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
412            {
413                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
414                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
415                    panic!(
416                        "unity: virtual slot {}
417 out of range (vtable len {}
418) on the runtime class behind {}
419 (method `{}
420`)",
421                        9usize,
422                        __vt.len(),
423                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
424                        "Write",
425                    )
426                });
427                let __inner: extern "C" fn(FileUserDataBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
428                    ::core::mem::transmute(__vi.method_ptr);
429                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
430                __inner(__receiver, ::core::convert::Into::into(value), __mi)
431            }
432        }
433    }
434    #[doc = "`isopen()` overload"]
435    fn isopen(self) -> bool {
436        unsafe {
437            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
438            {
439                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
440                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
441                    panic!(
442                        "unity: virtual slot {}
443 out of range (vtable len {}
444) on the runtime class behind {}
445 (method `{}
446`)",
447                        10usize,
448                        __vt.len(),
449                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
450                        "isopen",
451                    )
452                });
453                let __inner: extern "C" fn(FileUserDataBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
454                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
455                __inner(__receiver, __mi)
456            }
457        }
458    }
459    #[doc = "`Close()` overload"]
460    fn close_2(self) -> ::unity::Il2CppString {
461        unsafe {
462            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
463            {
464                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
465                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
466                    panic!(
467                        "unity: virtual slot {}
468 out of range (vtable len {}
469) on the runtime class behind {}
470 (method `{}
471`)",
472                        11usize,
473                        __vt.len(),
474                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
475                        "Close",
476                    )
477                });
478                let __inner: extern "C" fn(FileUserDataBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
479                    ::core::mem::transmute(__vi.method_ptr);
480                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
481                __inner(__receiver, __mi)
482            }
483        }
484    }
485    #[doc = "`flush()` overload"]
486    fn flush(self) -> bool {
487        unsafe {
488            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
489            {
490                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
491                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
492                    panic!(
493                        "unity: virtual slot {}
494 out of range (vtable len {}
495) on the runtime class behind {}
496 (method `{}
497`)",
498                        12usize,
499                        __vt.len(),
500                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
501                        "flush",
502                    )
503                });
504                let __inner: extern "C" fn(FileUserDataBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
505                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
506                __inner(__receiver, __mi)
507            }
508        }
509    }
510    #[doc = "`seek(::unity::Il2CppString, i64)` overload"]
511    fn seek(self, whence: impl ::core::convert::Into<::unity::Il2CppString>, offset: impl ::core::convert::Into<i64>) -> i64 {
512        unsafe {
513            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
514            {
515                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
516                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
517                    panic!(
518                        "unity: virtual slot {}
519 out of range (vtable len {}
520) on the runtime class behind {}
521 (method `{}
522`)",
523                        13usize,
524                        __vt.len(),
525                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
526                        "seek",
527                    )
528                });
529                let __inner: extern "C" fn(FileUserDataBase, ::unity::Il2CppString, i64, ::unity::OptionalMethod) -> i64 =
530                    ::core::mem::transmute(__vi.method_ptr);
531                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
532                __inner(__receiver, ::core::convert::Into::into(whence), ::core::convert::Into::into(offset), __mi)
533            }
534        }
535    }
536    #[doc = "`setvbuf(::unity::Il2CppString)` overload"]
537    fn setvbuf(self, mode: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
538        unsafe {
539            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
540            {
541                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
542                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
543                    panic!(
544                        "unity: virtual slot {}
545 out of range (vtable len {}
546) on the runtime class behind {}
547 (method `{}
548`)",
549                        14usize,
550                        __vt.len(),
551                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
552                        "setvbuf",
553                    )
554                });
555                let __inner: extern "C" fn(FileUserDataBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
556                    ::core::mem::transmute(__vi.method_ptr);
557                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
558                __inner(__receiver, ::core::convert::Into::into(mode), __mi)
559            }
560        }
561    }
562    #[doc = "`ToString()` overload"]
563    fn to_string(self) -> ::unity::Il2CppString {
564        unsafe {
565            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
566            {
567                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
568                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
569                    panic!(
570                        "unity: virtual slot {}
571 out of range (vtable len {}
572) on the runtime class behind {}
573 (method `{}
574`)",
575                        3usize,
576                        __vt.len(),
577                        <FileUserDataBase as ::unity::ClassIdentity>::NAME,
578                        "ToString",
579                    )
580                });
581                let __inner: extern "C" fn(FileUserDataBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
582                    ::core::mem::transmute(__vi.method_ptr);
583                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
584                __inner(__receiver, __mi)
585            }
586        }
587    }
588    #[doc = "`.ctor()` overload"]
589    fn ctor(self) -> () {
590        unsafe {
591            let __receiver = <FileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
592            ::unity::il2cpp_call!(__FileUserDataBase_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
593(FileUserDataBase)__receiver)
594        }
595    }
596}
597
598#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase")]
599impl<__T: IFileUserDataBase> IFileUserDataBaseMethods for __T {}
600
601#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase")]
602impl FileUserDataBase {
603    pub fn lines_method_info() -> &'static ::unity::il2cpp::MethodInfo {
604        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
605    }
606
607    pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
608        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
609    }
610
611    pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
612        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
613    }
614
615    pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
617    }
618
619    pub fn is_numeric_char_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
621    }
622
623    pub fn eof_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
625    }
626
627    pub fn read_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
629    }
630
631    pub fn read_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
633    }
634
635    pub fn read_to_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
637    }
638
639    pub fn peek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
640        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
641    }
642
643    pub fn write_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
645    }
646
647    pub fn isopen_method_info() -> &'static ::unity::il2cpp::MethodInfo {
648        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
649    }
650
651    pub fn close_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
653    }
654
655    pub fn flush_method_info() -> &'static ::unity::il2cpp::MethodInfo {
656        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
657    }
658
659    pub fn seek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
660        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
661    }
662
663    pub fn setvbuf_method_info() -> &'static ::unity::il2cpp::MethodInfo {
664        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
665    }
666
667    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
668        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
669    }
670
671    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
672        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
673    }
674}
675
676#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase")]
677impl FileUserDataBase {
678    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `Eof`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
679    pub unsafe fn eof(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
680        let __mi = Self::eof_method_info();
681        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
682        __inner(this.into(), ::core::option::Option::None)
683    }
684
685    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `ReadLine`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
686    pub unsafe fn read_line(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
687        let __mi = Self::read_line_method_info();
688        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
689        __inner(this.into(), ::core::option::Option::None)
690    }
691
692    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `ReadBuffer`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
693    pub unsafe fn read_buffer(this: impl ::core::convert::Into<::unity::IlInstance>, p: i32) -> ::unity::Il2CppString {
694        let __mi = Self::read_buffer_method_info();
695        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> ::unity::Il2CppString =
696            ::core::mem::transmute(__mi.method_ptr);
697        __inner(this.into(), p, ::core::option::Option::None)
698    }
699
700    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `ReadToEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
701    pub unsafe fn read_to_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
702        let __mi = Self::read_to_end_method_info();
703        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
704        __inner(this.into(), ::core::option::Option::None)
705    }
706
707    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `Peek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
708    pub unsafe fn peek(this: impl ::core::convert::Into<::unity::IlInstance>) -> u16 {
709        let __mi = Self::peek_method_info();
710        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> u16 = ::core::mem::transmute(__mi.method_ptr);
711        __inner(this.into(), ::core::option::Option::None)
712    }
713
714    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `Write`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
715    pub unsafe fn write_2(this: impl ::core::convert::Into<::unity::IlInstance>, value: ::unity::Il2CppString) -> () {
716        let __mi = Self::write_2_method_info();
717        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
718            ::core::mem::transmute(__mi.method_ptr);
719        __inner(this.into(), value, ::core::option::Option::None)
720    }
721
722    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `isopen`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
723    pub unsafe fn isopen(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
724        let __mi = Self::isopen_method_info();
725        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
726        __inner(this.into(), ::core::option::Option::None)
727    }
728
729    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `Close`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
730    pub unsafe fn close_2(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
731        let __mi = Self::close_2_method_info();
732        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
733        __inner(this.into(), ::core::option::Option::None)
734    }
735
736    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `flush`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
737    pub unsafe fn flush(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
738        let __mi = Self::flush_method_info();
739        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
740        __inner(this.into(), ::core::option::Option::None)
741    }
742
743    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `seek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
744    pub unsafe fn seek(this: impl ::core::convert::Into<::unity::IlInstance>, whence: ::unity::Il2CppString, offset: i64) -> i64 {
745        let __mi = Self::seek_method_info();
746        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, i64, ::unity::OptionalMethod) -> i64 =
747            ::core::mem::transmute(__mi.method_ptr);
748        __inner(this.into(), whence, offset, ::core::option::Option::None)
749    }
750
751    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `setvbuf`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
752    pub unsafe fn setvbuf(this: impl ::core::convert::Into<::unity::IlInstance>, mode: ::unity::Il2CppString) -> bool {
753        let __mi = Self::setvbuf_method_info();
754        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
755            ::core::mem::transmute(__mi.method_ptr);
756        __inner(this.into(), mode, ::core::option::Option::None)
757    }
758
759    #[doc = "Direct (non-virtual) call to `FileUserDataBase`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
760    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
761        let __mi = Self::to_string_method_info();
762        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
763        __inner(this.into(), ::core::option::Option::None)
764    }
765}
766
767#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase")]
768impl FileUserDataBase {
769    #[doc = "`.ctor()` — no args"]
770    pub fn new() -> Self {
771        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
772            panic!(
773                "{}
774::{}
775 failed to instantiate",
776                ::core::stringify!(FileUserDataBase),
777                ::core::stringify!(new),
778            )
779        });
780        <Self as IFileUserDataBaseMethods>::ctor(this);
781        this
782    }
783}
784
785#[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase")]
786#[doc(hidden)]
787pub mod prelude {
788    pub use super::{FileUserDataBase, IFileUserDataBase, IFileUserDataBaseMethods};
789    #[cfg(feature = "moon_sharp-interpreter-refidobject")]
790    pub use crate::moon_sharp::interpreter::refidobject::IRefIdObjectMethods;
791    #[cfg(feature = "system-object")]
792    pub use crate::system::object::IObjectMethods;
793    pub use crate::{moon_sharp::interpreter::refidobject::IRefIdObject, system::object::IObject};
794}