engage/generated/system/io/
endofstreamexception.rs1#[cfg(feature = "system-io-endofstreamexception-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 io::ioexception::{IIOException, IOException},
10 object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/endofstreamexception/EndOfStreamException.md"))]
14 #[::unity::class(namespace = "System.IO", name = "EndOfStreamException")]
15 #[parent(crate::system::io::ioexception::IOException)]
16 pub struct EndOfStreamException {}
17}
18
19#[cfg(feature = "system-io-endofstreamexception-types")]
20pub use __types::*;
21
22#[cfg(feature = "system-io-endofstreamexception")]
23pub trait IEndOfStreamExceptionMethods: IEndOfStreamException {
24 #[doc = "`.ctor()` overload"]
25 fn ctor(self) -> () {
26 unsafe {
27 let __receiver = <EndOfStreamException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x3acbbc0usize)as*mut u8,();
29(EndOfStreamException)__receiver)
30 }
31 }
32 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
33 fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
34 unsafe {
35 let __receiver = <EndOfStreamException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x3acbc40usize)as*mut u8,();
37(EndOfStreamException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
38 }
39 }
40}
41
42#[cfg(feature = "system-io-endofstreamexception")]
43impl<__T: IEndOfStreamException> IEndOfStreamExceptionMethods for __T {}
44
45#[cfg(feature = "system-io-endofstreamexception")]
46impl EndOfStreamException {
47 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49 }
50
51 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
53 }
54}
55
56#[cfg(feature = "system-io-endofstreamexception")]
57impl EndOfStreamException {
58 #[doc = "`.ctor()` — no args"]
59 pub fn new() -> Self {
60 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
61 panic!(
62 "{}
63::{}
64 failed to instantiate",
65 ::core::stringify!(EndOfStreamException),
66 ::core::stringify!(new),
67 )
68 });
69 <Self as IEndOfStreamExceptionMethods>::ctor(this);
70 this
71 }
72
73 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
74 pub fn new_2(message: ::unity::Il2CppString) -> Self {
75 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
76 panic!(
77 "{}
78::{}
79 failed to instantiate",
80 ::core::stringify!(EndOfStreamException),
81 ::core::stringify!(new_2),
82 )
83 });
84 <Self as IEndOfStreamExceptionMethods>::ctor_2(this, message);
85 this
86 }
87}
88
89#[cfg(feature = "system-io-endofstreamexception")]
90#[doc(hidden)]
91pub mod prelude {
92 pub use super::{EndOfStreamException, IEndOfStreamException, IEndOfStreamExceptionMethods};
93 #[cfg(feature = "system-io-ioexception")]
94 pub use crate::system::io::ioexception::IIOExceptionMethods;
95 #[cfg(feature = "system-object")]
96 pub use crate::system::object::IObjectMethods;
97 pub use crate::system::{
98 io::ioexception::{IIOException, IOException},
99 object::IObject,
100 };
101}