engage/generated/system/io/
__error.rs1#[cfg(feature = "system-io-__error-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/system/io/__error/__Error.md"))]
11 #[::unity::class(namespace = "System.IO", name = "__Error")]
12 #[parent(crate::system::object::Object)]
13 pub struct __Error {}
14}
15
16#[cfg(feature = "system-io-__error-types")]
17pub use __types::*;
18
19#[cfg(feature = "system-io-__error")]
20impl __Error {
21 #[doc = "`EndOfFile()` overload"]
22 pub fn end_of_file() -> () {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x34c9ce0usize)as*mut u8,();
25 )
26 }
27 }
28
29 #[doc = "`FileNotOpen()` overload"]
30 pub fn file_not_open() -> () {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x34c9d40usize)as*mut u8,();
33 )
34 }
35 }
36
37 #[doc = "`StreamIsClosed()` overload"]
38 pub fn stream_is_closed() -> () {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x34c9da0usize)as*mut u8,();
41 )
42 }
43 }
44
45 #[doc = "`MemoryStreamNotExpandable()` overload"]
46 pub fn memory_stream_not_expandable() -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x34c9e00usize)as*mut u8,();
49 )
50 }
51 }
52
53 #[doc = "`ReaderClosed()` overload"]
54 pub fn reader_closed() -> () {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x34c9e60usize)as*mut u8,();
57 )
58 }
59 }
60
61 #[doc = "`ReadNotSupported()` overload"]
62 pub fn read_not_supported() -> () {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x34c9ec0usize)as*mut u8,();
65 )
66 }
67 }
68
69 #[doc = "`WrongAsyncResult()` overload"]
70 pub fn wrong_async_result() -> () {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x34c9f20usize)as*mut u8,();
73 )
74 }
75 }
76
77 #[doc = "`EndReadCalledTwice()` overload"]
78 pub fn end_read_called_twice() -> () {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x34c9f80usize)as*mut u8,();
81 )
82 }
83 }
84
85 #[doc = "`EndWriteCalledTwice()` overload"]
86 pub fn end_write_called_twice() -> () {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x34c9fe0usize)as*mut u8,();
89 )
90 }
91 }
92
93 #[doc = "`GetDisplayablePath(::unity::Il2CppString, bool)` overload"]
94 pub fn get_displayable_path(
95 path: impl ::core::convert::Into<::unity::Il2CppString>,
96 is_invalid_path: impl ::core::convert::Into<bool>,
97 ) -> ::unity::Il2CppString {
98 unsafe {
99 ::unity::il2cpp_call!((::unity::module_base()+0x34ca040usize)as*mut u8, ::unity::Il2CppString;
100(::unity::Il2CppString)::core::convert::Into::into(path),(bool)::core::convert::Into::into(is_invalid_path))
101 }
102 }
103
104 #[doc = "`WinIOError(i32, ::unity::Il2CppString)` overload"]
105 pub fn win_io_error(error_code: impl ::core::convert::Into<i32>, maybe_full_path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
106 unsafe {
107 ::unity::il2cpp_call!((::unity::module_base()+0x34ca180usize)as*mut u8,();
108(i32)::core::convert::Into::into(error_code),(::unity::Il2CppString)::core::convert::Into::into(maybe_full_path))
109 }
110 }
111
112 #[doc = "`WriteNotSupported()` overload"]
113 pub fn write_not_supported() -> () {
114 unsafe {
115 ::unity::il2cpp_call!((::unity::module_base()+0x34ca6e0usize)as*mut u8,();
116 )
117 }
118 }
119
120 #[doc = "`WriterClosed()` overload"]
121 pub fn writer_closed() -> () {
122 unsafe {
123 ::unity::il2cpp_call!((::unity::module_base()+0x34ca740usize)as*mut u8,();
124 )
125 }
126 }
127}
128
129#[cfg(feature = "system-io-__error")]
130impl __Error {
131 pub fn end_of_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133 }
134
135 pub fn file_not_open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137 }
138
139 pub fn stream_is_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141 }
142
143 pub fn memory_stream_not_expandable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145 }
146
147 pub fn reader_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149 }
150
151 pub fn read_not_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
153 }
154
155 pub fn wrong_async_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
157 }
158
159 pub fn end_read_called_twice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
161 }
162
163 pub fn end_write_called_twice_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
165 }
166
167 pub fn get_displayable_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
169 }
170
171 pub fn win_io_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
173 }
174
175 pub fn write_not_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
177 }
178
179 pub fn writer_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
181 }
182}
183
184#[cfg(feature = "system-io-__error")]
185#[doc(hidden)]
186pub mod prelude {
187 pub use super::{__Error, I__Error};
188 pub use crate::system::object::IObject;
189 #[cfg(feature = "system-object")]
190 pub use crate::system::object::IObjectMethods;
191}