1#[cfg(feature = "system-io-filestream-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 io::stream::{IStream, Stream},
11 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12 object::{IObject, Object},
13 };
14
15 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/filestream/FileStream_ReadDelegate.md"))]
16 #[::unity::class(namespace = "System.IO", name = "FileStream.ReadDelegate")]
17 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
18 pub struct FileStream_ReadDelegate {}
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/filestream/FileStream_WriteDelegate.md"))]
21 #[::unity::class(namespace = "System.IO", name = "FileStream.WriteDelegate")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 pub struct FileStream_WriteDelegate {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/filestream/FileStream.md"))]
26 #[::unity::class(namespace = "System.IO", name = "FileStream")]
27 #[parent(crate::system::io::stream::Stream)]
28 pub struct FileStream {
29 #[static_field]
30 #[rename(name = "buf_recycle")]
31 pub buf_recycle: ::unity::Array<u8>,
32 #[static_field]
33 #[rename(name = "buf_recycle_lock")]
34 pub buf_recycle_lock: ::unity::IlInstance,
35 #[offset(40)]
36 #[rename(name = "buf")]
37 pub buf: ::unity::Array<u8>,
38 #[offset(48)]
39 #[rename(name = "name")]
40 pub name: ::unity::Il2CppString,
41 #[offset(64)]
42 #[rename(name = "isExposed")]
43 pub is_exposed: bool,
44 #[offset(72)]
45 #[rename(name = "append_startpos")]
46 pub append_startpos: i64,
47 #[offset(80)]
48 #[rename(name = "access")]
49 pub access: crate::system::io::fileaccess::FileAccess,
50 #[offset(84)]
51 #[rename(name = "owner")]
52 pub owner: bool,
53 #[offset(85)]
54 #[rename(name = "async")]
55 pub r#async: bool,
56 #[offset(86)]
57 #[rename(name = "canseek")]
58 pub canseek: bool,
59 #[offset(87)]
60 #[rename(name = "anonymous")]
61 pub anonymous: bool,
62 #[offset(88)]
63 #[rename(name = "buf_dirty")]
64 pub buf_dirty: bool,
65 #[offset(92)]
66 #[rename(name = "buf_size")]
67 pub buf_size: i32,
68 #[offset(96)]
69 #[rename(name = "buf_length")]
70 pub buf_length: i32,
71 #[offset(100)]
72 #[rename(name = "buf_offset")]
73 pub buf_offset: i32,
74 #[offset(104)]
75 #[rename(name = "buf_start")]
76 pub buf_start: i64,
77 }
78}
79
80#[cfg(feature = "system-io-filestream-types")]
81pub use __types::*;
82
83#[cfg(feature = "system-io-filestream")]
84pub trait IFileStream_ReadDelegateMethods: IFileStream_ReadDelegate {
85 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
86 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
87 unsafe {
88 let __receiver =
89 <FileStream_ReadDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x34d63f0usize)as*mut u8,();
91(FileStream_ReadDelegate)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
92 }
93 }
94 #[doc = "`Invoke(::unity::Array<u8>, i32, i32)` overload"]
95 fn invoke(
96 self,
97 buffer: impl ::core::convert::Into<::unity::Array<u8>>,
98 offset: impl ::core::convert::Into<i32>,
99 count: impl ::core::convert::Into<i32>,
100 ) -> i32 {
101 unsafe {
102 let __receiver =
103 <FileStream_ReadDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 {
105 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
106 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
107 panic!(
108 "unity: virtual slot {}
109 out of range (vtable len {}
110) on the runtime class behind {}
111 (method `{}
112`)",
113 13usize,
114 __vt.len(),
115 <FileStream_ReadDelegate as ::unity::ClassIdentity>::NAME,
116 "Invoke",
117 )
118 });
119 let __inner: extern "C" fn(FileStream_ReadDelegate, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> i32 =
120 ::core::mem::transmute(__vi.method_ptr);
121 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122 __inner(
123 __receiver,
124 ::core::convert::Into::into(buffer),
125 ::core::convert::Into::into(offset),
126 ::core::convert::Into::into(count),
127 __mi,
128 )
129 }
130 }
131 }
132}
133
134#[cfg(feature = "system-io-filestream")]
135impl<__T: IFileStream_ReadDelegate> IFileStream_ReadDelegateMethods for __T {}
136
137#[cfg(feature = "system-io-filestream")]
138impl FileStream_ReadDelegate {
139 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141 }
142
143 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145 }
146}
147
148#[cfg(feature = "system-io-filestream")]
149impl FileStream_ReadDelegate {
150 #[doc = "Direct (non-virtual) call to `FileStream_ReadDelegate`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
151 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, buffer: ::unity::Array<u8>, offset: i32, count: i32) -> i32 {
152 let __mi = Self::invoke_method_info();
153 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> i32 =
154 ::core::mem::transmute(__mi.method_ptr);
155 __inner(this.into(), buffer, offset, count, ::core::option::Option::None)
156 }
157}
158
159#[cfg(feature = "system-io-filestream")]
160impl FileStream_ReadDelegate {
161 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
162 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
163 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
164 panic!(
165 "{}
166::{}
167 failed to instantiate",
168 ::core::stringify!(FileStream_ReadDelegate),
169 ::core::stringify!(new),
170 )
171 });
172 <Self as IFileStream_ReadDelegateMethods>::ctor(this, object, method);
173 this
174 }
175}
176
177#[cfg(feature = "system-io-filestream")]
178pub trait IFileStream_WriteDelegateMethods: IFileStream_WriteDelegate {
179 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
180 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
181 unsafe {
182 let __receiver =
183 <FileStream_WriteDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x34d6890usize)as*mut u8,();
185(FileStream_WriteDelegate)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
186 }
187 }
188 #[doc = "`Invoke(::unity::Array<u8>, i32, i32)` overload"]
189 fn invoke(
190 self,
191 buffer: impl ::core::convert::Into<::unity::Array<u8>>,
192 offset: impl ::core::convert::Into<i32>,
193 count: impl ::core::convert::Into<i32>,
194 ) -> () {
195 unsafe {
196 let __receiver =
197 <FileStream_WriteDelegate 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(13usize).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 13usize,
208 __vt.len(),
209 <FileStream_WriteDelegate as ::unity::ClassIdentity>::NAME,
210 "Invoke",
211 )
212 });
213 let __inner: extern "C" fn(FileStream_WriteDelegate, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> () =
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(
217 __receiver,
218 ::core::convert::Into::into(buffer),
219 ::core::convert::Into::into(offset),
220 ::core::convert::Into::into(count),
221 __mi,
222 )
223 }
224 }
225 }
226}
227
228#[cfg(feature = "system-io-filestream")]
229impl<__T: IFileStream_WriteDelegate> IFileStream_WriteDelegateMethods for __T {}
230
231#[cfg(feature = "system-io-filestream")]
232impl FileStream_WriteDelegate {
233 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
235 }
236
237 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
239 }
240}
241
242#[cfg(feature = "system-io-filestream")]
243impl FileStream_WriteDelegate {
244 #[doc = "Direct (non-virtual) call to `FileStream_WriteDelegate`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
245 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, buffer: ::unity::Array<u8>, offset: i32, count: i32) -> () {
246 let __mi = Self::invoke_method_info();
247 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> () =
248 ::core::mem::transmute(__mi.method_ptr);
249 __inner(this.into(), buffer, offset, count, ::core::option::Option::None)
250 }
251}
252
253#[cfg(feature = "system-io-filestream")]
254impl FileStream_WriteDelegate {
255 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
256 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
257 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
258 panic!(
259 "{}
260::{}
261 failed to instantiate",
262 ::core::stringify!(FileStream_WriteDelegate),
263 ::core::stringify!(new),
264 )
265 });
266 <Self as IFileStream_WriteDelegateMethods>::ctor(this, object, method);
267 this
268 }
269}
270
271#[cfg(feature = "system-io-filestream")]
272impl FileStream {
273 #[doc = "`.cctor()` overload"]
274 pub fn cctor() -> () {
275 unsafe {
276 ::unity::il2cpp_call!((::unity::module_base()+0x3812030usize)as*mut u8,();
277 )
278 }
279 }
280}
281
282#[cfg(feature = "system-io-filestream")]
283pub trait IFileStreamMethods: IFileStream {
284 #[doc = "`.ctor(::unity::IntPtr, crate::system::io::fileaccess::FileAccess, bool, i32)` overload"]
285 fn ctor(
286 self,
287 handle: impl ::core::convert::Into<::unity::IntPtr>,
288 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
289 owns_handle: impl ::core::convert::Into<bool>,
290 buffer_size: impl ::core::convert::Into<i32>,
291 ) -> () {
292 unsafe {
293 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
294 ::unity::il2cpp_call!((::unity::module_base()+0x380e030usize)as*mut u8,();
295(FileStream)__receiver,(::unity::IntPtr)::core::convert::Into::into(handle),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(bool)::core::convert::Into::into(owns_handle),(i32)::core::convert::Into::into(buffer_size))
296 }
297 }
298 #[doc = "`.ctor(::unity::IntPtr, crate::system::io::fileaccess::FileAccess, bool, i32, bool, bool)` overload"]
299 fn ctor_2(
300 self,
301 handle: impl ::core::convert::Into<::unity::IntPtr>,
302 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
303 owns_handle: impl ::core::convert::Into<bool>,
304 buffer_size: impl ::core::convert::Into<i32>,
305 is_async: impl ::core::convert::Into<bool>,
306 is_console_wrapper: impl ::core::convert::Into<bool>,
307 ) -> () {
308 unsafe {
309 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
310 ::unity::il2cpp_call!((::unity::module_base()+0x380e040usize)as*mut u8,();
311(FileStream)__receiver,(::unity::IntPtr)::core::convert::Into::into(handle),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(bool)::core::convert::Into::into(owns_handle),(i32)::core::convert::Into::into(buffer_size),(bool)::core::convert::Into::into(is_async),(bool)::core::convert::Into::into(is_console_wrapper))
312 }
313 }
314 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess)` overload"]
315 fn ctor_3(
316 self,
317 path: impl ::core::convert::Into<::unity::Il2CppString>,
318 mode: impl ::core::convert::Into<crate::system::io::filemode::FileMode>,
319 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
320 ) -> () {
321 unsafe {
322 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323 ::unity::il2cpp_call!((::unity::module_base()+0x380e5b0usize)as*mut u8,();
324(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::io::filemode::FileMode)::core::convert::Into::into(mode),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access))
325 }
326 }
327 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare)` overload"]
328 fn ctor_4(
329 self,
330 path: impl ::core::convert::Into<::unity::Il2CppString>,
331 mode: impl ::core::convert::Into<crate::system::io::filemode::FileMode>,
332 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
333 share: impl ::core::convert::Into<crate::system::io::fileshare::FileShare>,
334 ) -> () {
335 unsafe {
336 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
337 ::unity::il2cpp_call!((::unity::module_base()+0x380bb40usize)as*mut u8,();
338(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::io::filemode::FileMode)::core::convert::Into::into(mode),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(crate::system::io::fileshare::FileShare)::core::convert::Into::into(share))
339 }
340 }
341 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32)` overload"]
342 fn ctor_5(
343 self,
344 path: impl ::core::convert::Into<::unity::Il2CppString>,
345 mode: impl ::core::convert::Into<crate::system::io::filemode::FileMode>,
346 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
347 share: impl ::core::convert::Into<crate::system::io::fileshare::FileShare>,
348 buffer_size: impl ::core::convert::Into<i32>,
349 ) -> () {
350 unsafe {
351 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
352 ::unity::il2cpp_call!((::unity::module_base()+0x380af80usize)as*mut u8,();
353(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::io::filemode::FileMode)::core::convert::Into::into(mode),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(crate::system::io::fileshare::FileShare)::core::convert::Into::into(share),(i32)::core::convert::Into::into(buffer_size))
354 }
355 }
356 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool)` overload"]
357 fn ctor_6(
358 self,
359 path: impl ::core::convert::Into<::unity::Il2CppString>,
360 mode: impl ::core::convert::Into<crate::system::io::filemode::FileMode>,
361 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
362 share: impl ::core::convert::Into<crate::system::io::fileshare::FileShare>,
363 buffer_size: impl ::core::convert::Into<i32>,
364 use_async: impl ::core::convert::Into<bool>,
365 ) -> () {
366 unsafe {
367 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 ::unity::il2cpp_call!((::unity::module_base()+0x380ee50usize)as*mut u8,();
369(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::io::filemode::FileMode)::core::convert::Into::into(mode),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(crate::system::io::fileshare::FileShare)::core::convert::Into::into(share),(i32)::core::convert::Into::into(buffer_size),(bool)::core::convert::Into::into(use_async))
370 }
371 }
372 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, crate::system::io::fileoptions::FileOptions)` overload"]
373 fn ctor_7(
374 self,
375 path: impl ::core::convert::Into<::unity::Il2CppString>,
376 mode: impl ::core::convert::Into<crate::system::io::filemode::FileMode>,
377 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
378 share: impl ::core::convert::Into<crate::system::io::fileshare::FileShare>,
379 buffer_size: impl ::core::convert::Into<i32>,
380 options: impl ::core::convert::Into<crate::system::io::fileoptions::FileOptions>,
381 ) -> () {
382 unsafe {
383 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
384 ::unity::il2cpp_call!((::unity::module_base()+0x380ee80usize)as*mut u8,();
385(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::io::filemode::FileMode)::core::convert::Into::into(mode),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(crate::system::io::fileshare::FileShare)::core::convert::Into::into(share),(i32)::core::convert::Into::into(buffer_size),(crate::system::io::fileoptions::FileOptions)::core::convert::Into::into(options))
386 }
387 }
388 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, crate::system::io::fileoptions::FileOptions, ::unity::Il2CppString, bool, bool, bool)` overload"]
389 fn ctor_8(
390 self,
391 path: impl ::core::convert::Into<::unity::Il2CppString>,
392 mode: impl ::core::convert::Into<crate::system::io::filemode::FileMode>,
393 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
394 share: impl ::core::convert::Into<crate::system::io::fileshare::FileShare>,
395 buffer_size: impl ::core::convert::Into<i32>,
396 options: impl ::core::convert::Into<crate::system::io::fileoptions::FileOptions>,
397 msg_path: impl ::core::convert::Into<::unity::Il2CppString>,
398 b_from_proxy: impl ::core::convert::Into<bool>,
399 use_long_path: impl ::core::convert::Into<bool>,
400 check_host: impl ::core::convert::Into<bool>,
401 ) -> () {
402 unsafe {
403 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404 ::unity::il2cpp_call!((::unity::module_base()+0x380eeb0usize)as*mut u8,();
405(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::io::filemode::FileMode)::core::convert::Into::into(mode),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(crate::system::io::fileshare::FileShare)::core::convert::Into::into(share),(i32)::core::convert::Into::into(buffer_size),(crate::system::io::fileoptions::FileOptions)::core::convert::Into::into(options),(::unity::Il2CppString)::core::convert::Into::into(msg_path),(bool)::core::convert::Into::into(b_from_proxy),(bool)::core::convert::Into::into(use_long_path),(bool)::core::convert::Into::into(check_host))
406 }
407 }
408 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool, bool)` overload"]
409 fn ctor_9(
410 self,
411 path: impl ::core::convert::Into<::unity::Il2CppString>,
412 mode: impl ::core::convert::Into<crate::system::io::filemode::FileMode>,
413 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
414 share: impl ::core::convert::Into<crate::system::io::fileshare::FileShare>,
415 buffer_size: impl ::core::convert::Into<i32>,
416 is_async: impl ::core::convert::Into<bool>,
417 anonymous: impl ::core::convert::Into<bool>,
418 ) -> () {
419 unsafe {
420 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
421 ::unity::il2cpp_call!((::unity::module_base()+0x380e5f0usize)as*mut u8,();
422(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::io::filemode::FileMode)::core::convert::Into::into(mode),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(crate::system::io::fileshare::FileShare)::core::convert::Into::into(share),(i32)::core::convert::Into::into(buffer_size),(bool)::core::convert::Into::into(is_async),(bool)::core::convert::Into::into(anonymous))
423 }
424 }
425 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool, crate::system::io::fileoptions::FileOptions)` overload"]
426 fn ctor_10(
427 self,
428 path: impl ::core::convert::Into<::unity::Il2CppString>,
429 mode: impl ::core::convert::Into<crate::system::io::filemode::FileMode>,
430 access: impl ::core::convert::Into<crate::system::io::fileaccess::FileAccess>,
431 share: impl ::core::convert::Into<crate::system::io::fileshare::FileShare>,
432 buffer_size: impl ::core::convert::Into<i32>,
433 anonymous: impl ::core::convert::Into<bool>,
434 options: impl ::core::convert::Into<crate::system::io::fileoptions::FileOptions>,
435 ) -> () {
436 unsafe {
437 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
438 ::unity::il2cpp_call!((::unity::module_base()+0x380e610usize)as*mut u8,();
439(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(path),(crate::system::io::filemode::FileMode)::core::convert::Into::into(mode),(crate::system::io::fileaccess::FileAccess)::core::convert::Into::into(access),(crate::system::io::fileshare::FileShare)::core::convert::Into::into(share),(i32)::core::convert::Into::into(buffer_size),(bool)::core::convert::Into::into(anonymous),(crate::system::io::fileoptions::FileOptions)::core::convert::Into::into(options))
440 }
441 }
442 #[doc = "`get_CanRead()` overload"]
443 fn get_can_read(self) -> bool {
444 unsafe {
445 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
446 {
447 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
448 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
449 panic!(
450 "unity: virtual slot {}
451 out of range (vtable len {}
452) on the runtime class behind {}
453 (method `{}
454`)",
455 7usize,
456 __vt.len(),
457 <FileStream as ::unity::ClassIdentity>::NAME,
458 "get_CanRead",
459 )
460 });
461 let __inner: extern "C" fn(FileStream, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
462 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
463 __inner(__receiver, __mi)
464 }
465 }
466 }
467 #[doc = "`get_CanWrite()` overload"]
468 fn get_can_write(self) -> bool {
469 unsafe {
470 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
471 {
472 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
473 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
474 panic!(
475 "unity: virtual slot {}
476 out of range (vtable len {}
477) on the runtime class behind {}
478 (method `{}
479`)",
480 10usize,
481 __vt.len(),
482 <FileStream as ::unity::ClassIdentity>::NAME,
483 "get_CanWrite",
484 )
485 });
486 let __inner: extern "C" fn(FileStream, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
487 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
488 __inner(__receiver, __mi)
489 }
490 }
491 }
492 #[doc = "`get_CanSeek()` overload"]
493 fn get_can_seek(self) -> bool {
494 unsafe {
495 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
496 {
497 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
498 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
499 panic!(
500 "unity: virtual slot {}
501 out of range (vtable len {}
502) on the runtime class behind {}
503 (method `{}
504`)",
505 8usize,
506 __vt.len(),
507 <FileStream as ::unity::ClassIdentity>::NAME,
508 "get_CanSeek",
509 )
510 });
511 let __inner: extern "C" fn(FileStream, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
512 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
513 __inner(__receiver, __mi)
514 }
515 }
516 }
517 #[doc = "`get_Length()` overload"]
518 fn get_length(self) -> i64 {
519 unsafe {
520 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
521 {
522 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
523 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
524 panic!(
525 "unity: virtual slot {}
526 out of range (vtable len {}
527) on the runtime class behind {}
528 (method `{}
529`)",
530 11usize,
531 __vt.len(),
532 <FileStream as ::unity::ClassIdentity>::NAME,
533 "get_Length",
534 )
535 });
536 let __inner: extern "C" fn(FileStream, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
537 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
538 __inner(__receiver, __mi)
539 }
540 }
541 }
542 #[doc = "`get_Position()` overload"]
543 fn get_position(self) -> i64 {
544 unsafe {
545 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
546 {
547 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
548 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
549 panic!(
550 "unity: virtual slot {}
551 out of range (vtable len {}
552) on the runtime class behind {}
553 (method `{}
554`)",
555 12usize,
556 __vt.len(),
557 <FileStream as ::unity::ClassIdentity>::NAME,
558 "get_Position",
559 )
560 });
561 let __inner: extern "C" fn(FileStream, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
562 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
563 __inner(__receiver, __mi)
564 }
565 }
566 }
567 #[doc = "`set_Position(i64)` overload"]
568 fn set_position(self, value: impl ::core::convert::Into<i64>) -> () {
569 unsafe {
570 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
571 {
572 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
573 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
574 panic!(
575 "unity: virtual slot {}
576 out of range (vtable len {}
577) on the runtime class behind {}
578 (method `{}
579`)",
580 13usize,
581 __vt.len(),
582 <FileStream as ::unity::ClassIdentity>::NAME,
583 "set_Position",
584 )
585 });
586 let __inner: extern "C" fn(FileStream, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
587 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
588 __inner(__receiver, ::core::convert::Into::into(value), __mi)
589 }
590 }
591 }
592 #[doc = "`ExposeHandle()` overload"]
593 fn expose_handle(self) -> () {
594 unsafe {
595 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
596 ::unity::il2cpp_call!((::unity::module_base()+0x380f310usize)as*mut u8,();
597(FileStream)__receiver)
598 }
599 }
600 #[doc = "`ReadByte()` overload"]
601 fn read_byte(self) -> i32 {
602 unsafe {
603 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
604 {
605 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
606 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
607 panic!(
608 "unity: virtual slot {}
609 out of range (vtable len {}
610) on the runtime class behind {}
611 (method `{}
612`)",
613 30usize,
614 __vt.len(),
615 <FileStream as ::unity::ClassIdentity>::NAME,
616 "ReadByte",
617 )
618 });
619 let __inner: extern "C" fn(FileStream, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
620 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
621 __inner(__receiver, __mi)
622 }
623 }
624 }
625 #[doc = "`WriteByte(u8)` overload"]
626 fn write_byte(self, value: impl ::core::convert::Into<u8>) -> () {
627 unsafe {
628 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
629 {
630 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
631 let __vi = *__vt.get(32usize).unwrap_or_else(|| {
632 panic!(
633 "unity: virtual slot {}
634 out of range (vtable len {}
635) on the runtime class behind {}
636 (method `{}
637`)",
638 32usize,
639 __vt.len(),
640 <FileStream as ::unity::ClassIdentity>::NAME,
641 "WriteByte",
642 )
643 });
644 let __inner: extern "C" fn(FileStream, u8, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
645 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
646 __inner(__receiver, ::core::convert::Into::into(value), __mi)
647 }
648 }
649 }
650 #[doc = "`Read(::unity::Array<u8>, i32, i32)` overload"]
651 fn read(
652 self,
653 array: impl ::core::convert::Into<::unity::Array<u8>>,
654 offset: impl ::core::convert::Into<i32>,
655 count: impl ::core::convert::Into<i32>,
656 ) -> i32 {
657 unsafe {
658 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
659 {
660 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
661 let __vi = *__vt.get(29usize).unwrap_or_else(|| {
662 panic!(
663 "unity: virtual slot {}
664 out of range (vtable len {}
665) on the runtime class behind {}
666 (method `{}
667`)",
668 29usize,
669 __vt.len(),
670 <FileStream as ::unity::ClassIdentity>::NAME,
671 "Read",
672 )
673 });
674 let __inner: extern "C" fn(FileStream, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> i32 =
675 ::core::mem::transmute(__vi.method_ptr);
676 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
677 __inner(
678 __receiver,
679 ::core::convert::Into::into(array),
680 ::core::convert::Into::into(offset),
681 ::core::convert::Into::into(count),
682 __mi,
683 )
684 }
685 }
686 }
687 #[doc = "`ReadInternal(::unity::Array<u8>, i32, i32)` overload"]
688 fn read_internal(
689 self,
690 dest: impl ::core::convert::Into<::unity::Array<u8>>,
691 offset: impl ::core::convert::Into<i32>,
692 count: impl ::core::convert::Into<i32>,
693 ) -> i32 {
694 unsafe {
695 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
696 ::unity::il2cpp_call!((::unity::module_base()+0x38102f0usize)as*mut u8,i32;
697(FileStream)__receiver,(::unity::Array<u8>)::core::convert::Into::into(dest),(i32)::core::convert::Into::into(offset),(i32)::core::convert::Into::into(count))
698 }
699 }
700 #[doc = "`Write(::unity::Array<u8>, i32, i32)` overload"]
701 fn write(
702 self,
703 array: impl ::core::convert::Into<::unity::Array<u8>>,
704 offset: impl ::core::convert::Into<i32>,
705 count: impl ::core::convert::Into<i32>,
706 ) -> () {
707 unsafe {
708 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
709 {
710 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
711 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
712 panic!(
713 "unity: virtual slot {}
714 out of range (vtable len {}
715) on the runtime class behind {}
716 (method `{}
717`)",
718 31usize,
719 __vt.len(),
720 <FileStream as ::unity::ClassIdentity>::NAME,
721 "Write",
722 )
723 });
724 let __inner: extern "C" fn(FileStream, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> () =
725 ::core::mem::transmute(__vi.method_ptr);
726 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
727 __inner(
728 __receiver,
729 ::core::convert::Into::into(array),
730 ::core::convert::Into::into(offset),
731 ::core::convert::Into::into(count),
732 __mi,
733 )
734 }
735 }
736 }
737 #[doc = "`WriteInternal(::unity::Array<u8>, i32, i32)` overload"]
738 fn write_internal(
739 self,
740 src: impl ::core::convert::Into<::unity::Array<u8>>,
741 offset: impl ::core::convert::Into<i32>,
742 count: impl ::core::convert::Into<i32>,
743 ) -> () {
744 unsafe {
745 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
746 ::unity::il2cpp_call!((::unity::module_base()+0x3810bb0usize)as*mut u8,();
747(FileStream)__receiver,(::unity::Array<u8>)::core::convert::Into::into(src),(i32)::core::convert::Into::into(offset),(i32)::core::convert::Into::into(count))
748 }
749 }
750 #[doc = "`Seek(i64, crate::system::io::seekorigin::SeekOrigin)` overload"]
751 fn seek(self, offset: impl ::core::convert::Into<i64>, origin: impl ::core::convert::Into<crate::system::io::seekorigin::SeekOrigin>) -> i64 {
752 unsafe {
753 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
754 {
755 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
756 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
757 panic!(
758 "unity: virtual slot {}
759 out of range (vtable len {}
760) on the runtime class behind {}
761 (method `{}
762`)",
763 27usize,
764 __vt.len(),
765 <FileStream as ::unity::ClassIdentity>::NAME,
766 "Seek",
767 )
768 });
769 let __inner: extern "C" fn(FileStream, i64, crate::system::io::seekorigin::SeekOrigin, ::unity::OptionalMethod) -> i64 =
770 ::core::mem::transmute(__vi.method_ptr);
771 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
772 __inner(__receiver, ::core::convert::Into::into(offset), ::core::convert::Into::into(origin), __mi)
773 }
774 }
775 }
776 #[doc = "`SetLength(i64)` overload"]
777 fn set_length(self, value: impl ::core::convert::Into<i64>) -> () {
778 unsafe {
779 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
780 {
781 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
782 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
783 panic!(
784 "unity: virtual slot {}
785 out of range (vtable len {}
786) on the runtime class behind {}
787 (method `{}
788`)",
789 28usize,
790 __vt.len(),
791 <FileStream as ::unity::ClassIdentity>::NAME,
792 "SetLength",
793 )
794 });
795 let __inner: extern "C" fn(FileStream, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
796 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
797 __inner(__receiver, ::core::convert::Into::into(value), __mi)
798 }
799 }
800 }
801 #[doc = "`Flush()` overload"]
802 fn flush(self) -> () {
803 unsafe {
804 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
805 {
806 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
807 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
808 panic!(
809 "unity: virtual slot {}
810 out of range (vtable len {}
811) on the runtime class behind {}
812 (method `{}
813`)",
814 20usize,
815 __vt.len(),
816 <FileStream as ::unity::ClassIdentity>::NAME,
817 "Flush",
818 )
819 });
820 let __inner: extern "C" fn(FileStream, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
821 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
822 __inner(__receiver, __mi)
823 }
824 }
825 }
826 #[doc = "`Finalize()` overload"]
827 fn finalize(self) -> () {
828 unsafe {
829 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
830 {
831 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
832 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
833 panic!(
834 "unity: virtual slot {}
835 out of range (vtable len {}
836) on the runtime class behind {}
837 (method `{}
838`)",
839 1usize,
840 __vt.len(),
841 <FileStream as ::unity::ClassIdentity>::NAME,
842 "Finalize",
843 )
844 });
845 let __inner: extern "C" fn(FileStream, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
846 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
847 __inner(__receiver, __mi)
848 }
849 }
850 }
851 #[doc = "`Dispose(bool)` overload"]
852 fn dispose(self, disposing: impl ::core::convert::Into<bool>) -> () {
853 unsafe {
854 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
855 {
856 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
857 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
858 panic!(
859 "unity: virtual slot {}
860 out of range (vtable len {}
861) on the runtime class behind {}
862 (method `{}
863`)",
864 19usize,
865 __vt.len(),
866 <FileStream as ::unity::ClassIdentity>::NAME,
867 "Dispose",
868 )
869 });
870 let __inner: extern "C" fn(FileStream, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
871 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
872 __inner(__receiver, ::core::convert::Into::into(disposing), __mi)
873 }
874 }
875 }
876 #[doc = "`ReadSegment(::unity::Array<u8>, i32, i32)` overload"]
877 fn read_segment(
878 self,
879 dest: impl ::core::convert::Into<::unity::Array<u8>>,
880 dest_offset: impl ::core::convert::Into<i32>,
881 count: impl ::core::convert::Into<i32>,
882 ) -> i32 {
883 unsafe {
884 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
885 ::unity::il2cpp_call!((::unity::module_base()+0x38104b0usize)as*mut u8,i32;
886(FileStream)__receiver,(::unity::Array<u8>)::core::convert::Into::into(dest),(i32)::core::convert::Into::into(dest_offset),(i32)::core::convert::Into::into(count))
887 }
888 }
889 #[doc = "`WriteSegment(::unity::Array<u8>, i32, i32)` overload"]
890 fn write_segment(
891 self,
892 src: impl ::core::convert::Into<::unity::Array<u8>>,
893 src_offset: impl ::core::convert::Into<i32>,
894 count: impl ::core::convert::Into<i32>,
895 ) -> i32 {
896 unsafe {
897 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
898 ::unity::il2cpp_call!((::unity::module_base()+0x3810ea0usize)as*mut u8,i32;
899(FileStream)__receiver,(::unity::Array<u8>)::core::convert::Into::into(src),(i32)::core::convert::Into::into(src_offset),(i32)::core::convert::Into::into(count))
900 }
901 }
902 #[doc = "`FlushBuffer()` overload"]
903 fn flush_buffer(self) -> () {
904 unsafe {
905 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
906 ::unity::il2cpp_call!((::unity::module_base()+0x380f960usize)as*mut u8,();
907(FileStream)__receiver)
908 }
909 }
910 #[doc = "`FlushBufferIfDirty()` overload"]
911 fn flush_buffer_if_dirty(self) -> () {
912 unsafe {
913 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
914 ::unity::il2cpp_call!((::unity::module_base()+0x380f600usize)as*mut u8,();
915(FileStream)__receiver)
916 }
917 }
918 #[doc = "`RefillBuffer()` overload"]
919 fn refill_buffer(self) -> () {
920 unsafe {
921 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
922 ::unity::il2cpp_call!((::unity::module_base()+0x380ff10usize)as*mut u8,();
923(FileStream)__receiver)
924 }
925 }
926 #[doc = "`InitBuffer(i32, bool)` overload"]
927 fn init_buffer(self, size: impl ::core::convert::Into<i32>, is_zero_size: impl ::core::convert::Into<bool>) -> () {
928 unsafe {
929 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
930 ::unity::il2cpp_call!((::unity::module_base()+0x380f030usize)as*mut u8,();
931(FileStream)__receiver,(i32)::core::convert::Into::into(size),(bool)::core::convert::Into::into(is_zero_size))
932 }
933 }
934 #[doc = "`GetSecureFileName(::unity::Il2CppString)` overload"]
935 fn get_secure_file_name(self, filename: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
936 unsafe {
937 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
938 ::unity::il2cpp_call!((::unity::module_base()+0x380ef90usize)as*mut u8, ::unity::Il2CppString;
939(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(filename))
940 }
941 }
942 #[doc = "`GetSecureFileName(::unity::Il2CppString, bool)` overload"]
943 fn get_secure_file_name_2(
944 self,
945 filename: impl ::core::convert::Into<::unity::Il2CppString>,
946 full: impl ::core::convert::Into<bool>,
947 ) -> ::unity::Il2CppString {
948 unsafe {
949 let __receiver = <FileStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
950 ::unity::il2cpp_call!((::unity::module_base()+0x380eec0usize)as*mut u8, ::unity::Il2CppString;
951(FileStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(filename),(bool)::core::convert::Into::into(full))
952 }
953 }
954}
955
956#[cfg(feature = "system-io-filestream")]
957impl<__T: IFileStream> IFileStreamMethods for __T {}
958
959#[cfg(feature = "system-io-filestream")]
960impl FileStream {
961 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
962 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
963 }
964
965 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
966 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
967 }
968
969 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
970 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
971 }
972
973 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
974 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
975 }
976
977 pub fn ctor_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
978 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
979 }
980
981 pub fn ctor_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
982 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
983 }
984
985 pub fn ctor_7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
986 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
987 }
988
989 pub fn ctor_8_method_info() -> &'static ::unity::il2cpp::MethodInfo {
990 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
991 }
992
993 pub fn ctor_9_method_info() -> &'static ::unity::il2cpp::MethodInfo {
994 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
995 }
996
997 pub fn ctor_10_method_info() -> &'static ::unity::il2cpp::MethodInfo {
998 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
999 }
1000
1001 pub fn get_can_read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1002 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1003 }
1004
1005 pub fn get_can_write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1006 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1007 }
1008
1009 pub fn get_can_seek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1010 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1011 }
1012
1013 pub fn get_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1014 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1015 }
1016
1017 pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1018 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1019 }
1020
1021 pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1022 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1023 }
1024
1025 pub fn expose_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1026 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1027 }
1028
1029 pub fn read_byte_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1030 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1031 }
1032
1033 pub fn write_byte_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1034 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1035 }
1036
1037 pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1038 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1039 }
1040
1041 pub fn read_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1042 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1043 }
1044
1045 pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1046 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1047 }
1048
1049 pub fn write_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1050 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1051 }
1052
1053 pub fn seek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1054 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1055 }
1056
1057 pub fn set_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1058 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1059 }
1060
1061 pub fn flush_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1062 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1063 }
1064
1065 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1066 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1067 }
1068
1069 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1070 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1071 }
1072
1073 pub fn read_segment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1074 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
1075 }
1076
1077 pub fn write_segment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1078 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
1079 }
1080
1081 pub fn flush_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1082 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
1083 }
1084
1085 pub fn flush_buffer_if_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1086 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
1087 }
1088
1089 pub fn refill_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1090 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
1091 }
1092
1093 pub fn init_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1094 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
1095 }
1096
1097 pub fn get_secure_file_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1098 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
1099 }
1100
1101 pub fn get_secure_file_name_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
1103 }
1104
1105 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
1107 }
1108}
1109
1110#[cfg(feature = "system-io-filestream")]
1111impl FileStream {
1112 #[doc = "Direct (non-virtual) call to `FileStream`'s own `get_CanRead`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1113 pub unsafe fn get_can_read(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
1114 let __mi = Self::get_can_read_method_info();
1115 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
1116 __inner(this.into(), ::core::option::Option::None)
1117 }
1118
1119 #[doc = "Direct (non-virtual) call to `FileStream`'s own `get_CanWrite`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1120 pub unsafe fn get_can_write(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
1121 let __mi = Self::get_can_write_method_info();
1122 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
1123 __inner(this.into(), ::core::option::Option::None)
1124 }
1125
1126 #[doc = "Direct (non-virtual) call to `FileStream`'s own `get_CanSeek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1127 pub unsafe fn get_can_seek(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
1128 let __mi = Self::get_can_seek_method_info();
1129 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
1130 __inner(this.into(), ::core::option::Option::None)
1131 }
1132
1133 #[doc = "Direct (non-virtual) call to `FileStream`'s own `get_Length`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1134 pub unsafe fn get_length(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
1135 let __mi = Self::get_length_method_info();
1136 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
1137 __inner(this.into(), ::core::option::Option::None)
1138 }
1139
1140 #[doc = "Direct (non-virtual) call to `FileStream`'s own `get_Position`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1141 pub unsafe fn get_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
1142 let __mi = Self::get_position_method_info();
1143 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
1144 __inner(this.into(), ::core::option::Option::None)
1145 }
1146
1147 #[doc = "Direct (non-virtual) call to `FileStream`'s own `set_Position`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1148 pub unsafe fn set_position(this: impl ::core::convert::Into<::unity::IlInstance>, value: i64) -> () {
1149 let __mi = Self::set_position_method_info();
1150 let __inner: extern "C" fn(::unity::IlInstance, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1151 __inner(this.into(), value, ::core::option::Option::None)
1152 }
1153
1154 #[doc = "Direct (non-virtual) call to `FileStream`'s own `ReadByte`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1155 pub unsafe fn read_byte(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
1156 let __mi = Self::read_byte_method_info();
1157 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
1158 __inner(this.into(), ::core::option::Option::None)
1159 }
1160
1161 #[doc = "Direct (non-virtual) call to `FileStream`'s own `WriteByte`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1162 pub unsafe fn write_byte(this: impl ::core::convert::Into<::unity::IlInstance>, value: u8) -> () {
1163 let __mi = Self::write_byte_method_info();
1164 let __inner: extern "C" fn(::unity::IlInstance, u8, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1165 __inner(this.into(), value, ::core::option::Option::None)
1166 }
1167
1168 #[doc = "Direct (non-virtual) call to `FileStream`'s own `Read`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1169 pub unsafe fn read(this: impl ::core::convert::Into<::unity::IlInstance>, array: ::unity::Array<u8>, offset: i32, count: i32) -> i32 {
1170 let __mi = Self::read_method_info();
1171 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> i32 =
1172 ::core::mem::transmute(__mi.method_ptr);
1173 __inner(this.into(), array, offset, count, ::core::option::Option::None)
1174 }
1175
1176 #[doc = "Direct (non-virtual) call to `FileStream`'s own `Write`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1177 pub unsafe fn write(this: impl ::core::convert::Into<::unity::IlInstance>, array: ::unity::Array<u8>, offset: i32, count: i32) -> () {
1178 let __mi = Self::write_method_info();
1179 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> () =
1180 ::core::mem::transmute(__mi.method_ptr);
1181 __inner(this.into(), array, offset, count, ::core::option::Option::None)
1182 }
1183
1184 #[doc = "Direct (non-virtual) call to `FileStream`'s own `Seek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1185 pub unsafe fn seek(this: impl ::core::convert::Into<::unity::IlInstance>, offset: i64, origin: crate::system::io::seekorigin::SeekOrigin) -> i64 {
1186 let __mi = Self::seek_method_info();
1187 let __inner: extern "C" fn(::unity::IlInstance, i64, crate::system::io::seekorigin::SeekOrigin, ::unity::OptionalMethod) -> i64 =
1188 ::core::mem::transmute(__mi.method_ptr);
1189 __inner(this.into(), offset, origin, ::core::option::Option::None)
1190 }
1191
1192 #[doc = "Direct (non-virtual) call to `FileStream`'s own `SetLength`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1193 pub unsafe fn set_length(this: impl ::core::convert::Into<::unity::IlInstance>, value: i64) -> () {
1194 let __mi = Self::set_length_method_info();
1195 let __inner: extern "C" fn(::unity::IlInstance, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1196 __inner(this.into(), value, ::core::option::Option::None)
1197 }
1198
1199 #[doc = "Direct (non-virtual) call to `FileStream`'s own `Flush`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1200 pub unsafe fn flush(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1201 let __mi = Self::flush_method_info();
1202 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1203 __inner(this.into(), ::core::option::Option::None)
1204 }
1205
1206 #[doc = "Direct (non-virtual) call to `FileStream`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1207 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1208 let __mi = Self::finalize_method_info();
1209 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1210 __inner(this.into(), ::core::option::Option::None)
1211 }
1212
1213 #[doc = "Direct (non-virtual) call to `FileStream`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1214 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>, disposing: bool) -> () {
1215 let __mi = Self::dispose_method_info();
1216 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1217 __inner(this.into(), disposing, ::core::option::Option::None)
1218 }
1219}
1220
1221#[cfg(feature = "system-io-filestream")]
1222impl FileStream {
1223 #[doc = "`.ctor(::unity::IntPtr, crate::system::io::fileaccess::FileAccess, bool, i32)` — overload selector"]
1224 pub fn new(handle: ::unity::IntPtr, access: crate::system::io::fileaccess::FileAccess, owns_handle: bool, buffer_size: i32) -> Self {
1225 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1226 panic!(
1227 "{}
1228::{}
1229 failed to instantiate",
1230 ::core::stringify!(FileStream),
1231 ::core::stringify!(new),
1232 )
1233 });
1234 <Self as IFileStreamMethods>::ctor(this, handle, access, owns_handle, buffer_size);
1235 this
1236 }
1237
1238 #[doc = "`.ctor(::unity::IntPtr, crate::system::io::fileaccess::FileAccess, bool, i32, bool, bool)` — overload selector"]
1239 pub fn new_2(
1240 handle: ::unity::IntPtr,
1241 access: crate::system::io::fileaccess::FileAccess,
1242 owns_handle: bool,
1243 buffer_size: i32,
1244 is_async: bool,
1245 is_console_wrapper: bool,
1246 ) -> Self {
1247 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1248 panic!(
1249 "{}
1250::{}
1251 failed to instantiate",
1252 ::core::stringify!(FileStream),
1253 ::core::stringify!(new_2),
1254 )
1255 });
1256 <Self as IFileStreamMethods>::ctor_2(this, handle, access, owns_handle, buffer_size, is_async, is_console_wrapper);
1257 this
1258 }
1259
1260 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess)` — overload selector"]
1261 pub fn new_3(
1262 path: ::unity::Il2CppString,
1263 mode: crate::system::io::filemode::FileMode,
1264 access: crate::system::io::fileaccess::FileAccess,
1265 ) -> Self {
1266 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1267 panic!(
1268 "{}
1269::{}
1270 failed to instantiate",
1271 ::core::stringify!(FileStream),
1272 ::core::stringify!(new_3),
1273 )
1274 });
1275 <Self as IFileStreamMethods>::ctor_3(this, path, mode, access);
1276 this
1277 }
1278
1279 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare)` — overload selector"]
1280 pub fn new_4(
1281 path: ::unity::Il2CppString,
1282 mode: crate::system::io::filemode::FileMode,
1283 access: crate::system::io::fileaccess::FileAccess,
1284 share: crate::system::io::fileshare::FileShare,
1285 ) -> Self {
1286 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1287 panic!(
1288 "{}
1289::{}
1290 failed to instantiate",
1291 ::core::stringify!(FileStream),
1292 ::core::stringify!(new_4),
1293 )
1294 });
1295 <Self as IFileStreamMethods>::ctor_4(this, path, mode, access, share);
1296 this
1297 }
1298
1299 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32)` — overload selector"]
1300 pub fn new_5(
1301 path: ::unity::Il2CppString,
1302 mode: crate::system::io::filemode::FileMode,
1303 access: crate::system::io::fileaccess::FileAccess,
1304 share: crate::system::io::fileshare::FileShare,
1305 buffer_size: i32,
1306 ) -> Self {
1307 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1308 panic!(
1309 "{}
1310::{}
1311 failed to instantiate",
1312 ::core::stringify!(FileStream),
1313 ::core::stringify!(new_5),
1314 )
1315 });
1316 <Self as IFileStreamMethods>::ctor_5(this, path, mode, access, share, buffer_size);
1317 this
1318 }
1319
1320 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool)` — overload selector"]
1321 pub fn new_6(
1322 path: ::unity::Il2CppString,
1323 mode: crate::system::io::filemode::FileMode,
1324 access: crate::system::io::fileaccess::FileAccess,
1325 share: crate::system::io::fileshare::FileShare,
1326 buffer_size: i32,
1327 use_async: bool,
1328 ) -> Self {
1329 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1330 panic!(
1331 "{}
1332::{}
1333 failed to instantiate",
1334 ::core::stringify!(FileStream),
1335 ::core::stringify!(new_6),
1336 )
1337 });
1338 <Self as IFileStreamMethods>::ctor_6(this, path, mode, access, share, buffer_size, use_async);
1339 this
1340 }
1341
1342 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, crate::system::io::fileoptions::FileOptions)` — overload selector"]
1343 pub fn new_7(
1344 path: ::unity::Il2CppString,
1345 mode: crate::system::io::filemode::FileMode,
1346 access: crate::system::io::fileaccess::FileAccess,
1347 share: crate::system::io::fileshare::FileShare,
1348 buffer_size: i32,
1349 options: crate::system::io::fileoptions::FileOptions,
1350 ) -> Self {
1351 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1352 panic!(
1353 "{}
1354::{}
1355 failed to instantiate",
1356 ::core::stringify!(FileStream),
1357 ::core::stringify!(new_7),
1358 )
1359 });
1360 <Self as IFileStreamMethods>::ctor_7(this, path, mode, access, share, buffer_size, options);
1361 this
1362 }
1363
1364 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, crate::system::io::fileoptions::FileOptions, ::unity::Il2CppString, bool, bool, bool)` — overload selector"]
1365 pub fn new_8(
1366 path: ::unity::Il2CppString,
1367 mode: crate::system::io::filemode::FileMode,
1368 access: crate::system::io::fileaccess::FileAccess,
1369 share: crate::system::io::fileshare::FileShare,
1370 buffer_size: i32,
1371 options: crate::system::io::fileoptions::FileOptions,
1372 msg_path: ::unity::Il2CppString,
1373 b_from_proxy: bool,
1374 use_long_path: bool,
1375 check_host: bool,
1376 ) -> Self {
1377 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1378 panic!(
1379 "{}
1380::{}
1381 failed to instantiate",
1382 ::core::stringify!(FileStream),
1383 ::core::stringify!(new_8),
1384 )
1385 });
1386 <Self as IFileStreamMethods>::ctor_8(
1387 this,
1388 path,
1389 mode,
1390 access,
1391 share,
1392 buffer_size,
1393 options,
1394 msg_path,
1395 b_from_proxy,
1396 use_long_path,
1397 check_host,
1398 );
1399 this
1400 }
1401
1402 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool, bool)` — overload selector"]
1403 pub fn new_9(
1404 path: ::unity::Il2CppString,
1405 mode: crate::system::io::filemode::FileMode,
1406 access: crate::system::io::fileaccess::FileAccess,
1407 share: crate::system::io::fileshare::FileShare,
1408 buffer_size: i32,
1409 is_async: bool,
1410 anonymous: bool,
1411 ) -> Self {
1412 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1413 panic!(
1414 "{}
1415::{}
1416 failed to instantiate",
1417 ::core::stringify!(FileStream),
1418 ::core::stringify!(new_9),
1419 )
1420 });
1421 <Self as IFileStreamMethods>::ctor_9(this, path, mode, access, share, buffer_size, is_async, anonymous);
1422 this
1423 }
1424
1425 #[doc = "`.ctor(::unity::Il2CppString, crate::system::io::filemode::FileMode, crate::system::io::fileaccess::FileAccess, crate::system::io::fileshare::FileShare, i32, bool, crate::system::io::fileoptions::FileOptions)` — overload selector"]
1426 pub fn new_10(
1427 path: ::unity::Il2CppString,
1428 mode: crate::system::io::filemode::FileMode,
1429 access: crate::system::io::fileaccess::FileAccess,
1430 share: crate::system::io::fileshare::FileShare,
1431 buffer_size: i32,
1432 anonymous: bool,
1433 options: crate::system::io::fileoptions::FileOptions,
1434 ) -> Self {
1435 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1436 panic!(
1437 "{}
1438::{}
1439 failed to instantiate",
1440 ::core::stringify!(FileStream),
1441 ::core::stringify!(new_10),
1442 )
1443 });
1444 <Self as IFileStreamMethods>::ctor_10(this, path, mode, access, share, buffer_size, anonymous, options);
1445 this
1446 }
1447}
1448
1449#[cfg(feature = "system-io-filestream")]
1450#[doc(hidden)]
1451pub mod prelude {
1452 pub use super::{
1453 FileStream, FileStream_ReadDelegate, FileStream_WriteDelegate, IFileStream, IFileStreamMethods, IFileStream_ReadDelegate,
1454 IFileStream_ReadDelegateMethods, IFileStream_WriteDelegate, IFileStream_WriteDelegateMethods,
1455 };
1456 #[cfg(feature = "system-delegate")]
1457 pub use crate::system::delegate::IDelegateMethods;
1458 #[cfg(feature = "system-io-stream")]
1459 pub use crate::system::io::stream::IStreamMethods;
1460 #[cfg(feature = "system-multicastdelegate")]
1461 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
1462 #[cfg(feature = "system-object")]
1463 pub use crate::system::object::IObjectMethods;
1464 pub use crate::system::{delegate::IDelegate, io::stream::IStream, multicastdelegate::IMulticastDelegate, object::IObject};
1465}