Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        moon_sharp::interpreter::{
10            core_lib::io::fileuserdatabase::{FileUserDataBase, IFileUserDataBase},
11            refidobject::{IRefIdObject, RefIdObject},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/core_lib/io/streamfileuserdatabase/StreamFileUserDataBase.md"))]
17    #[::unity::class(namespace = "MoonSharp.Interpreter.CoreLib.IO", name = "StreamFileUserDataBase")]
18    #[parent(crate::moon_sharp::interpreter::core_lib::io::fileuserdatabase::FileUserDataBase)]
19    pub struct StreamFileUserDataBase {
20        #[offset(24)]
21        #[rename(name = "m_Stream")]
22        pub m_stream: crate::system::io::stream::Stream,
23        #[offset(32)]
24        #[rename(name = "m_Reader")]
25        pub m_reader: crate::system::io::streamreader::StreamReader,
26        #[offset(40)]
27        #[rename(name = "m_Writer")]
28        pub m_writer: crate::system::io::streamwriter::StreamWriter,
29        #[offset(48)]
30        #[rename(name = "m_Closed")]
31        pub m_closed: bool,
32    }
33}
34
35#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase-types")]
36pub use __types::*;
37
38#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase")]
39#[doc(hidden)]
40#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
41mod __StreamFileUserDataBase_unity_raw {
42    use super::*;
43    #[doc(hidden)]
44    #[allow(non_snake_case)]
45    pub mod __lookup_initialize {
46        use super::*;
47        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
48            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
49                <crate::system::io::stream::Stream as ::unity::IlType>::il_type(),
50                <crate::system::io::streamreader::StreamReader as ::unity::IlType>::il_type(),
51                <crate::system::io::streamwriter::StreamWriter as ::unity::IlType>::il_type(),
52            ];
53            ::unity::lookup::method_info_on_class_with_signature(
54                <StreamFileUserDataBase as ::unity::ClassIdentity>::class(),
55                "Initialize",
56                3,
57                param_types,
58                false,
59            )
60        });
61        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62            match &*METHOD {
63                ::core::result::Result::Ok(mi) => *mi,
64                ::core::result::Result::Err(e) => {
65                    panic!(
66                        "method lookup failed: {}
67::{}
68: {}
69",
70                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
71                        "Initialize",
72                        e
73                    )
74                },
75            }
76        }
77    }
78    #[doc(hidden)]
79    #[allow(non_snake_case)]
80    pub mod __lookup_check_file_is_not_closed {
81        use super::*;
82        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
83            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
84            ::unity::lookup::method_info_on_class_with_signature(
85                <StreamFileUserDataBase as ::unity::ClassIdentity>::class(),
86                "CheckFileIsNotClosed",
87                0,
88                param_types,
89                false,
90            )
91        });
92        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93            match &*METHOD {
94                ::core::result::Result::Ok(mi) => *mi,
95                ::core::result::Result::Err(e) => {
96                    panic!(
97                        "method lookup failed: {}
98::{}
99: {}
100",
101                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
102                        "CheckFileIsNotClosed",
103                        e
104                    )
105                },
106            }
107        }
108    }
109    #[doc(hidden)]
110    #[allow(non_snake_case)]
111    pub mod __lookup_ctor {
112        use super::*;
113        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
114            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
115            ::unity::lookup::method_info_on_class_with_signature(
116                <StreamFileUserDataBase as ::unity::ClassIdentity>::class(),
117                ".ctor",
118                0,
119                param_types,
120                false,
121            )
122        });
123        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124            match &*METHOD {
125                ::core::result::Result::Ok(mi) => *mi,
126                ::core::result::Result::Err(e) => {
127                    panic!(
128                        "method lookup failed: {}
129::{}
130: {}
131",
132                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
133                        ".ctor",
134                        e
135                    )
136                },
137            }
138        }
139    }
140}
141
142#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase")]
143pub trait IStreamFileUserDataBaseMethods: IStreamFileUserDataBase {
144    #[doc = "`Initialize(crate::system::io::stream::Stream, crate::system::io::streamreader::StreamReader, crate::system::io::streamwriter::StreamWriter)` overload"]
145    fn initialize(
146        self,
147        stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
148        reader: impl ::core::convert::Into<crate::system::io::streamreader::StreamReader>,
149        writer: impl ::core::convert::Into<crate::system::io::streamwriter::StreamWriter>,
150    ) -> () {
151        unsafe {
152            let __receiver =
153                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!(__StreamFileUserDataBase_unity_raw::__lookup_initialize::get_method_info().method_ptr,();
155(StreamFileUserDataBase)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(stream),(crate::system::io::streamreader::StreamReader)::core::convert::Into::into(reader),(crate::system::io::streamwriter::StreamWriter)::core::convert::Into::into(writer))
156        }
157    }
158    #[doc = "`CheckFileIsNotClosed()` overload"]
159    fn check_file_is_not_closed(self) -> () {
160        unsafe {
161            let __receiver =
162                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!(__StreamFileUserDataBase_unity_raw::__lookup_check_file_is_not_closed::get_method_info().method_ptr,();
164(StreamFileUserDataBase)__receiver)
165        }
166    }
167    #[doc = "`Eof()` overload"]
168    fn eof(self) -> bool {
169        unsafe {
170            let __receiver =
171                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            {
173                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
174                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
175                    panic!(
176                        "unity: virtual slot {}
177 out of range (vtable len {}
178) on the runtime class behind {}
179 (method `{}
180`)",
181                        4usize,
182                        __vt.len(),
183                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
184                        "Eof",
185                    )
186                });
187                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
188                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
189                __inner(__receiver, __mi)
190            }
191        }
192    }
193    #[doc = "`ReadLine()` overload"]
194    fn read_line(self) -> ::unity::Il2CppString {
195        unsafe {
196            let __receiver =
197                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            {
199                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
200                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
201                    panic!(
202                        "unity: virtual slot {}
203 out of range (vtable len {}
204) on the runtime class behind {}
205 (method `{}
206`)",
207                        5usize,
208                        __vt.len(),
209                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
210                        "ReadLine",
211                    )
212                });
213                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
214                    ::core::mem::transmute(__vi.method_ptr);
215                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
216                __inner(__receiver, __mi)
217            }
218        }
219    }
220    #[doc = "`ReadToEnd()` overload"]
221    fn read_to_end(self) -> ::unity::Il2CppString {
222        unsafe {
223            let __receiver =
224                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225            {
226                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
227                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
228                    panic!(
229                        "unity: virtual slot {}
230 out of range (vtable len {}
231) on the runtime class behind {}
232 (method `{}
233`)",
234                        7usize,
235                        __vt.len(),
236                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
237                        "ReadToEnd",
238                    )
239                });
240                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
241                    ::core::mem::transmute(__vi.method_ptr);
242                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
243                __inner(__receiver, __mi)
244            }
245        }
246    }
247    #[doc = "`ReadBuffer(i32)` overload"]
248    fn read_buffer(self, p: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
249        unsafe {
250            let __receiver =
251                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252            {
253                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
254                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
255                    panic!(
256                        "unity: virtual slot {}
257 out of range (vtable len {}
258) on the runtime class behind {}
259 (method `{}
260`)",
261                        6usize,
262                        __vt.len(),
263                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
264                        "ReadBuffer",
265                    )
266                });
267                let __inner: extern "C" fn(StreamFileUserDataBase, i32, ::unity::OptionalMethod) -> ::unity::Il2CppString =
268                    ::core::mem::transmute(__vi.method_ptr);
269                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
270                __inner(__receiver, ::core::convert::Into::into(p), __mi)
271            }
272        }
273    }
274    #[doc = "`Peek()` overload"]
275    fn peek(self) -> u16 {
276        unsafe {
277            let __receiver =
278                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279            {
280                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
281                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
282                    panic!(
283                        "unity: virtual slot {}
284 out of range (vtable len {}
285) on the runtime class behind {}
286 (method `{}
287`)",
288                        8usize,
289                        __vt.len(),
290                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
291                        "Peek",
292                    )
293                });
294                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::OptionalMethod) -> u16 = ::core::mem::transmute(__vi.method_ptr);
295                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
296                __inner(__receiver, __mi)
297            }
298        }
299    }
300    #[doc = "`Write(::unity::Il2CppString)` overload"]
301    fn write(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
302        unsafe {
303            let __receiver =
304                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305            {
306                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
307                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
308                    panic!(
309                        "unity: virtual slot {}
310 out of range (vtable len {}
311) on the runtime class behind {}
312 (method `{}
313`)",
314                        9usize,
315                        __vt.len(),
316                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
317                        "Write",
318                    )
319                });
320                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
321                    ::core::mem::transmute(__vi.method_ptr);
322                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
323                __inner(__receiver, ::core::convert::Into::into(value), __mi)
324            }
325        }
326    }
327    #[doc = "`Close()` overload"]
328    fn close(self) -> ::unity::Il2CppString {
329        unsafe {
330            let __receiver =
331                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332            {
333                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
334                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
335                    panic!(
336                        "unity: virtual slot {}
337 out of range (vtable len {}
338) on the runtime class behind {}
339 (method `{}
340`)",
341                        11usize,
342                        __vt.len(),
343                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
344                        "Close",
345                    )
346                });
347                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::OptionalMethod) -> ::unity::Il2CppString =
348                    ::core::mem::transmute(__vi.method_ptr);
349                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
350                __inner(__receiver, __mi)
351            }
352        }
353    }
354    #[doc = "`flush()` overload"]
355    fn flush(self) -> bool {
356        unsafe {
357            let __receiver =
358                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
359            {
360                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
361                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
362                    panic!(
363                        "unity: virtual slot {}
364 out of range (vtable len {}
365) on the runtime class behind {}
366 (method `{}
367`)",
368                        12usize,
369                        __vt.len(),
370                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
371                        "flush",
372                    )
373                });
374                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
375                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
376                __inner(__receiver, __mi)
377            }
378        }
379    }
380    #[doc = "`seek(::unity::Il2CppString, i64)` overload"]
381    fn seek(self, whence: impl ::core::convert::Into<::unity::Il2CppString>, offset: impl ::core::convert::Into<i64>) -> i64 {
382        unsafe {
383            let __receiver =
384                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385            {
386                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
387                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
388                    panic!(
389                        "unity: virtual slot {}
390 out of range (vtable len {}
391) on the runtime class behind {}
392 (method `{}
393`)",
394                        13usize,
395                        __vt.len(),
396                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
397                        "seek",
398                    )
399                });
400                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::Il2CppString, i64, ::unity::OptionalMethod) -> i64 =
401                    ::core::mem::transmute(__vi.method_ptr);
402                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
403                __inner(__receiver, ::core::convert::Into::into(whence), ::core::convert::Into::into(offset), __mi)
404            }
405        }
406    }
407    #[doc = "`setvbuf(::unity::Il2CppString)` overload"]
408    fn setvbuf(self, mode: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
409        unsafe {
410            let __receiver =
411                <StreamFileUserDataBase 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(14usize).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                        14usize,
422                        __vt.len(),
423                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
424                        "setvbuf",
425                    )
426                });
427                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
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(mode), __mi)
431            }
432        }
433    }
434    #[doc = "`isopen()` overload"]
435    fn isopen(self) -> bool {
436        unsafe {
437            let __receiver =
438                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439            {
440                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
441                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
442                    panic!(
443                        "unity: virtual slot {}
444 out of range (vtable len {}
445) on the runtime class behind {}
446 (method `{}
447`)",
448                        10usize,
449                        __vt.len(),
450                        <StreamFileUserDataBase as ::unity::ClassIdentity>::NAME,
451                        "isopen",
452                    )
453                });
454                let __inner: extern "C" fn(StreamFileUserDataBase, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
455                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
456                __inner(__receiver, __mi)
457            }
458        }
459    }
460    #[doc = "`.ctor()` overload"]
461    fn ctor(self) -> () {
462        unsafe {
463            let __receiver =
464                <StreamFileUserDataBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
465            ::unity::il2cpp_call!(__StreamFileUserDataBase_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
466(StreamFileUserDataBase)__receiver)
467        }
468    }
469}
470
471#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase")]
472impl<__T: IStreamFileUserDataBase> IStreamFileUserDataBaseMethods for __T {}
473
474#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase")]
475impl StreamFileUserDataBase {
476    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
478    }
479
480    pub fn check_file_is_not_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
481        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
482    }
483
484    pub fn eof_method_info() -> &'static ::unity::il2cpp::MethodInfo {
485        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
486    }
487
488    pub fn read_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
490    }
491
492    pub fn read_to_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
493        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
494    }
495
496    pub fn read_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
498    }
499
500    pub fn peek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
502    }
503
504    pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
506    }
507
508    pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
510    }
511
512    pub fn flush_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
514    }
515
516    pub fn seek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
518    }
519
520    pub fn setvbuf_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
522    }
523
524    pub fn isopen_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
526    }
527
528    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
530    }
531}
532
533#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase")]
534impl StreamFileUserDataBase {
535    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `Eof`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
536    pub unsafe fn eof(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
537        let __mi = Self::eof_method_info();
538        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
539        __inner(this.into(), ::core::option::Option::None)
540    }
541
542    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `ReadLine`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
543    pub unsafe fn read_line(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
544        let __mi = Self::read_line_method_info();
545        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
546        __inner(this.into(), ::core::option::Option::None)
547    }
548
549    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `ReadToEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
550    pub unsafe fn read_to_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
551        let __mi = Self::read_to_end_method_info();
552        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
553        __inner(this.into(), ::core::option::Option::None)
554    }
555
556    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `ReadBuffer`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
557    pub unsafe fn read_buffer(this: impl ::core::convert::Into<::unity::IlInstance>, p: i32) -> ::unity::Il2CppString {
558        let __mi = Self::read_buffer_method_info();
559        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> ::unity::Il2CppString =
560            ::core::mem::transmute(__mi.method_ptr);
561        __inner(this.into(), p, ::core::option::Option::None)
562    }
563
564    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `Peek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
565    pub unsafe fn peek(this: impl ::core::convert::Into<::unity::IlInstance>) -> u16 {
566        let __mi = Self::peek_method_info();
567        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> u16 = ::core::mem::transmute(__mi.method_ptr);
568        __inner(this.into(), ::core::option::Option::None)
569    }
570
571    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `Write`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
572    pub unsafe fn write(this: impl ::core::convert::Into<::unity::IlInstance>, value: ::unity::Il2CppString) -> () {
573        let __mi = Self::write_method_info();
574        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
575            ::core::mem::transmute(__mi.method_ptr);
576        __inner(this.into(), value, ::core::option::Option::None)
577    }
578
579    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `Close`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
580    pub unsafe fn close(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
581        let __mi = Self::close_method_info();
582        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
583        __inner(this.into(), ::core::option::Option::None)
584    }
585
586    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `flush`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
587    pub unsafe fn flush(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
588        let __mi = Self::flush_method_info();
589        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
590        __inner(this.into(), ::core::option::Option::None)
591    }
592
593    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `seek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
594    pub unsafe fn seek(this: impl ::core::convert::Into<::unity::IlInstance>, whence: ::unity::Il2CppString, offset: i64) -> i64 {
595        let __mi = Self::seek_method_info();
596        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, i64, ::unity::OptionalMethod) -> i64 =
597            ::core::mem::transmute(__mi.method_ptr);
598        __inner(this.into(), whence, offset, ::core::option::Option::None)
599    }
600
601    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `setvbuf`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
602    pub unsafe fn setvbuf(this: impl ::core::convert::Into<::unity::IlInstance>, mode: ::unity::Il2CppString) -> bool {
603        let __mi = Self::setvbuf_method_info();
604        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
605            ::core::mem::transmute(__mi.method_ptr);
606        __inner(this.into(), mode, ::core::option::Option::None)
607    }
608
609    #[doc = "Direct (non-virtual) call to `StreamFileUserDataBase`'s own `isopen`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
610    pub unsafe fn isopen(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
611        let __mi = Self::isopen_method_info();
612        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
613        __inner(this.into(), ::core::option::Option::None)
614    }
615}
616
617#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase")]
618impl StreamFileUserDataBase {
619    #[doc = "`.ctor()` — no args"]
620    pub fn new() -> Self {
621        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
622            panic!(
623                "{}
624::{}
625 failed to instantiate",
626                ::core::stringify!(StreamFileUserDataBase),
627                ::core::stringify!(new),
628            )
629        });
630        <Self as IStreamFileUserDataBaseMethods>::ctor(this);
631        this
632    }
633}
634
635#[cfg(feature = "moon_sharp-interpreter-core_lib-io-streamfileuserdatabase")]
636#[doc(hidden)]
637pub mod prelude {
638    pub use super::{IStreamFileUserDataBase, IStreamFileUserDataBaseMethods, StreamFileUserDataBase};
639    #[cfg(feature = "moon_sharp-interpreter-core_lib-io-fileuserdatabase")]
640    pub use crate::moon_sharp::interpreter::core_lib::io::fileuserdatabase::IFileUserDataBaseMethods;
641    #[cfg(feature = "moon_sharp-interpreter-refidobject")]
642    pub use crate::moon_sharp::interpreter::refidobject::IRefIdObjectMethods;
643    #[cfg(feature = "system-object")]
644    pub use crate::system::object::IObjectMethods;
645    pub use crate::{
646        moon_sharp::interpreter::{core_lib::io::fileuserdatabase::IFileUserDataBase, refidobject::IRefIdObject},
647        system::object::IObject,
648    };
649}