Skip to main content

engage/generated/nintendo/message_studio/lib/
binlibmsfilebase.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase-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/nintendo/message_studio/lib/binlibmsfilebase/BinLibmsFileBase.md"))]
11    #[::unity::class(namespace = "Nintendo.MessageStudio.Lib", name = "BinLibmsFileBase")]
12    #[parent(crate::system::object::Object)]
13    pub struct BinLibmsFileBase {
14        #[offset(16)]
15        #[rename(name = "m_ResourceFilePtr")]
16        pub m_resource_file_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "m_FileObjectPtr")]
19        pub m_file_object_ptr: ::unity::IntPtr,
20    }
21}
22
23#[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase-types")]
24pub use __types::*;
25
26#[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase")]
27pub trait IBinLibmsFileBaseMethods: IBinLibmsFileBase {
28    #[doc = "`get_FileObjectPtr()` overload"]
29    fn get_file_object_ptr(self) -> ::unity::IntPtr {
30        unsafe {
31            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x1e963e0usize)as*mut u8, ::unity::IntPtr;
33(BinLibmsFileBase)__receiver)
34        }
35    }
36    #[doc = "`get_IsFileLoaded()` overload"]
37    fn get_is_file_loaded(self) -> bool {
38        unsafe {
39            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x1e963f0usize)as*mut u8,bool;
41(BinLibmsFileBase)__receiver)
42        }
43    }
44    #[doc = "`Load(::unity::Array<u8>)` overload"]
45    fn load(self, bytes: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
46        unsafe {
47            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x1e96440usize)as*mut u8,();
49(BinLibmsFileBase)__receiver,(::unity::Array<u8>)::core::convert::Into::into(bytes))
50        }
51    }
52    #[doc = "`Free()` overload"]
53    fn free(self) -> () {
54        unsafe {
55            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x1e96520usize)as*mut u8,();
57(BinLibmsFileBase)__receiver)
58        }
59    }
60    #[doc = "`Finalize()` overload"]
61    fn finalize(self) -> () {
62        unsafe {
63            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            {
65                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
66                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
67                    panic!(
68                        "unity: virtual slot {}
69 out of range (vtable len {}
70) on the runtime class behind {}
71 (method `{}
72`)",
73                        1usize,
74                        __vt.len(),
75                        <BinLibmsFileBase as ::unity::ClassIdentity>::NAME,
76                        "Finalize",
77                    )
78                });
79                let __inner: extern "C" fn(BinLibmsFileBase, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
80                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
81                __inner(__receiver, __mi)
82            }
83        }
84    }
85    #[doc = "`Dispose()` overload"]
86    fn dispose(self) -> () {
87        unsafe {
88            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            {
90                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
91                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
92                    panic!(
93                        "unity: virtual slot {}
94 out of range (vtable len {}
95) on the runtime class behind {}
96 (method `{}
97`)",
98                        4usize,
99                        __vt.len(),
100                        <BinLibmsFileBase as ::unity::ClassIdentity>::NAME,
101                        "Dispose",
102                    )
103                });
104                let __inner: extern "C" fn(BinLibmsFileBase, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
105                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
106                __inner(__receiver, __mi)
107            }
108        }
109    }
110    #[doc = "`InitObject(::unity::IntPtr)` overload"]
111    fn init_object(self, resource_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> ::unity::IntPtr {
112        unsafe {
113            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            {
115                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
117                    panic!(
118                        "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123                        5usize,
124                        __vt.len(),
125                        <BinLibmsFileBase as ::unity::ClassIdentity>::NAME,
126                        "InitObject",
127                    )
128                });
129                let __inner: extern "C" fn(BinLibmsFileBase, ::unity::IntPtr, ::unity::OptionalMethod) -> ::unity::IntPtr =
130                    ::core::mem::transmute(__vi.method_ptr);
131                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
132                __inner(__receiver, ::core::convert::Into::into(resource_ptr), __mi)
133            }
134        }
135    }
136    #[doc = "`CloseObject(::unity::IntPtr)` overload"]
137    fn close_object(self, object_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
138        unsafe {
139            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            {
141                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
143                    panic!(
144                        "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149                        6usize,
150                        __vt.len(),
151                        <BinLibmsFileBase as ::unity::ClassIdentity>::NAME,
152                        "CloseObject",
153                    )
154                });
155                let __inner: extern "C" fn(BinLibmsFileBase, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
156                    ::core::mem::transmute(__vi.method_ptr);
157                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
158                __inner(__receiver, ::core::convert::Into::into(object_ptr), __mi)
159            }
160        }
161    }
162    #[doc = "`.ctor()` overload"]
163    fn ctor(self) -> () {
164        unsafe {
165            let __receiver = <BinLibmsFileBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x1e96390usize)as*mut u8,();
167(BinLibmsFileBase)__receiver)
168        }
169    }
170}
171
172#[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase")]
173impl<__T: IBinLibmsFileBase> IBinLibmsFileBaseMethods for __T {}
174
175#[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase")]
176impl BinLibmsFileBase {
177    pub fn get_file_object_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
179    }
180
181    pub fn get_is_file_loaded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
183    }
184
185    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
187    }
188
189    pub fn free_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
191    }
192
193    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
195    }
196
197    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
199    }
200
201    pub fn init_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
203    }
204
205    pub fn close_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
207    }
208
209    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
211    }
212}
213
214#[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase")]
215impl BinLibmsFileBase {
216    #[doc = "Direct (non-virtual) call to `BinLibmsFileBase`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
217    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
218        let __mi = Self::finalize_method_info();
219        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
220        __inner(this.into(), ::core::option::Option::None)
221    }
222
223    #[doc = "Direct (non-virtual) call to `BinLibmsFileBase`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
224    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
225        let __mi = Self::dispose_method_info();
226        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
227        __inner(this.into(), ::core::option::Option::None)
228    }
229
230    #[doc = "Direct (non-virtual) call to `BinLibmsFileBase`'s own `InitObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
231    pub unsafe fn init_object(this: impl ::core::convert::Into<::unity::IlInstance>, resource_ptr: ::unity::IntPtr) -> ::unity::IntPtr {
232        let __mi = Self::init_object_method_info();
233        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> ::unity::IntPtr =
234            ::core::mem::transmute(__mi.method_ptr);
235        __inner(this.into(), resource_ptr, ::core::option::Option::None)
236    }
237
238    #[doc = "Direct (non-virtual) call to `BinLibmsFileBase`'s own `CloseObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
239    pub unsafe fn close_object(this: impl ::core::convert::Into<::unity::IlInstance>, object_ptr: ::unity::IntPtr) -> () {
240        let __mi = Self::close_object_method_info();
241        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
242        __inner(this.into(), object_ptr, ::core::option::Option::None)
243    }
244}
245
246#[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase")]
247impl BinLibmsFileBase {
248    #[doc = "`.ctor()` — no args"]
249    pub fn new() -> Self {
250        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
251            panic!(
252                "{}
253::{}
254 failed to instantiate",
255                ::core::stringify!(BinLibmsFileBase),
256                ::core::stringify!(new),
257            )
258        });
259        <Self as IBinLibmsFileBaseMethods>::ctor(this);
260        this
261    }
262}
263
264#[cfg(feature = "nintendo-message_studio-lib-binlibmsfilebase")]
265#[doc(hidden)]
266pub mod prelude {
267    pub use super::{BinLibmsFileBase, IBinLibmsFileBase, IBinLibmsFileBaseMethods};
268    pub use crate::system::object::IObject;
269    #[cfg(feature = "system-object")]
270    pub use crate::system::object::IObjectMethods;
271}