1#[cfg(feature = "system-io-compression-deflatestream-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/compression/deflatestream/DeflateStream_ReadMethod.md"))]
16 #[::unity::class(namespace = "System.IO.Compression", name = "DeflateStream.ReadMethod")]
17 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
18 pub struct DeflateStream_ReadMethod {}
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/compression/deflatestream/DeflateStream_WriteMethod.md"))]
21 #[::unity::class(namespace = "System.IO.Compression", name = "DeflateStream.WriteMethod")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 pub struct DeflateStream_WriteMethod {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/compression/deflatestream/DeflateStream.md"))]
26 #[::unity::class(namespace = "System.IO.Compression", name = "DeflateStream")]
27 #[parent(crate::system::io::stream::Stream)]
28 pub struct DeflateStream {
29 #[offset(40)]
30 #[rename(name = "base_stream")]
31 pub base_stream: crate::system::io::stream::Stream,
32 #[offset(48)]
33 #[rename(name = "mode")]
34 pub mode: crate::system::io::compression::compressionmode::CompressionMode,
35 #[offset(52)]
36 #[rename(name = "leaveOpen")]
37 pub leave_open: bool,
38 #[offset(53)]
39 #[rename(name = "disposed")]
40 pub disposed: bool,
41 #[offset(56)]
42 #[rename(name = "native")]
43 pub native: crate::system::io::compression::deflatestreamnative::DeflateStreamNative,
44 }
45}
46
47#[cfg(feature = "system-io-compression-deflatestream-types")]
48pub use __types::*;
49
50#[cfg(feature = "system-io-compression-deflatestream")]
51pub trait IDeflateStream_ReadMethodMethods: IDeflateStream_ReadMethod {
52 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
53 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
54 unsafe {
55 let __receiver =
56 <DeflateStream_ReadMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x2a7f340usize)as*mut u8,();
58(DeflateStream_ReadMethod)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
59 }
60 }
61 #[doc = "`Invoke(::unity::Array<u8>, i32, i32)` overload"]
62 fn invoke(
63 self,
64 array: impl ::core::convert::Into<::unity::Array<u8>>,
65 offset: impl ::core::convert::Into<i32>,
66 count: impl ::core::convert::Into<i32>,
67 ) -> i32 {
68 unsafe {
69 let __receiver =
70 <DeflateStream_ReadMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 {
72 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
74 panic!(
75 "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80 13usize,
81 __vt.len(),
82 <DeflateStream_ReadMethod as ::unity::ClassIdentity>::NAME,
83 "Invoke",
84 )
85 });
86 let __inner: extern "C" fn(DeflateStream_ReadMethod, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> i32 =
87 ::core::mem::transmute(__vi.method_ptr);
88 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89 __inner(
90 __receiver,
91 ::core::convert::Into::into(array),
92 ::core::convert::Into::into(offset),
93 ::core::convert::Into::into(count),
94 __mi,
95 )
96 }
97 }
98 }
99}
100
101#[cfg(feature = "system-io-compression-deflatestream")]
102impl<__T: IDeflateStream_ReadMethod> IDeflateStream_ReadMethodMethods for __T {}
103
104#[cfg(feature = "system-io-compression-deflatestream")]
105impl DeflateStream_ReadMethod {
106 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
108 }
109
110 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
112 }
113}
114
115#[cfg(feature = "system-io-compression-deflatestream")]
116impl DeflateStream_ReadMethod {
117 #[doc = "Direct (non-virtual) call to `DeflateStream_ReadMethod`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
118 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, array: ::unity::Array<u8>, offset: i32, count: i32) -> i32 {
119 let __mi = Self::invoke_method_info();
120 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> i32 =
121 ::core::mem::transmute(__mi.method_ptr);
122 __inner(this.into(), array, offset, count, ::core::option::Option::None)
123 }
124}
125
126#[cfg(feature = "system-io-compression-deflatestream")]
127impl DeflateStream_ReadMethod {
128 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
129 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
130 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
131 panic!(
132 "{}
133::{}
134 failed to instantiate",
135 ::core::stringify!(DeflateStream_ReadMethod),
136 ::core::stringify!(new),
137 )
138 });
139 <Self as IDeflateStream_ReadMethodMethods>::ctor(this, object, method);
140 this
141 }
142}
143
144#[cfg(feature = "system-io-compression-deflatestream")]
145pub trait IDeflateStream_WriteMethodMethods: IDeflateStream_WriteMethod {
146 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
147 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
148 unsafe {
149 let __receiver =
150 <DeflateStream_WriteMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x2a7f7e0usize)as*mut u8,();
152(DeflateStream_WriteMethod)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
153 }
154 }
155 #[doc = "`Invoke(::unity::Array<u8>, i32, i32)` overload"]
156 fn invoke(
157 self,
158 array: impl ::core::convert::Into<::unity::Array<u8>>,
159 offset: impl ::core::convert::Into<i32>,
160 count: impl ::core::convert::Into<i32>,
161 ) -> () {
162 unsafe {
163 let __receiver =
164 <DeflateStream_WriteMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 {
166 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
167 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
168 panic!(
169 "unity: virtual slot {}
170 out of range (vtable len {}
171) on the runtime class behind {}
172 (method `{}
173`)",
174 13usize,
175 __vt.len(),
176 <DeflateStream_WriteMethod as ::unity::ClassIdentity>::NAME,
177 "Invoke",
178 )
179 });
180 let __inner: extern "C" fn(DeflateStream_WriteMethod, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> () =
181 ::core::mem::transmute(__vi.method_ptr);
182 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
183 __inner(
184 __receiver,
185 ::core::convert::Into::into(array),
186 ::core::convert::Into::into(offset),
187 ::core::convert::Into::into(count),
188 __mi,
189 )
190 }
191 }
192 }
193}
194
195#[cfg(feature = "system-io-compression-deflatestream")]
196impl<__T: IDeflateStream_WriteMethod> IDeflateStream_WriteMethodMethods for __T {}
197
198#[cfg(feature = "system-io-compression-deflatestream")]
199impl DeflateStream_WriteMethod {
200 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
202 }
203
204 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
206 }
207}
208
209#[cfg(feature = "system-io-compression-deflatestream")]
210impl DeflateStream_WriteMethod {
211 #[doc = "Direct (non-virtual) call to `DeflateStream_WriteMethod`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
212 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, array: ::unity::Array<u8>, offset: i32, count: i32) -> () {
213 let __mi = Self::invoke_method_info();
214 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> () =
215 ::core::mem::transmute(__mi.method_ptr);
216 __inner(this.into(), array, offset, count, ::core::option::Option::None)
217 }
218}
219
220#[cfg(feature = "system-io-compression-deflatestream")]
221impl DeflateStream_WriteMethod {
222 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
223 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
224 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
225 panic!(
226 "{}
227::{}
228 failed to instantiate",
229 ::core::stringify!(DeflateStream_WriteMethod),
230 ::core::stringify!(new),
231 )
232 });
233 <Self as IDeflateStream_WriteMethodMethods>::ctor(this, object, method);
234 this
235 }
236}
237
238#[cfg(feature = "system-io-compression-deflatestream")]
239pub trait IDeflateStreamMethods: IDeflateStream {
240 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionmode::CompressionMode)` overload"]
241 fn ctor(
242 self,
243 stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
244 mode: impl ::core::convert::Into<crate::system::io::compression::compressionmode::CompressionMode>,
245 ) -> () {
246 unsafe {
247 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248 ::unity::il2cpp_call!((::unity::module_base()+0x3558330usize)as*mut u8,();
249(DeflateStream)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(stream),(crate::system::io::compression::compressionmode::CompressionMode)::core::convert::Into::into(mode))
250 }
251 }
252 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionmode::CompressionMode, bool, i32)` overload"]
253 fn ctor_2(
254 self,
255 stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
256 mode: impl ::core::convert::Into<crate::system::io::compression::compressionmode::CompressionMode>,
257 leave_open: impl ::core::convert::Into<bool>,
258 windows_bits: impl ::core::convert::Into<i32>,
259 ) -> () {
260 unsafe {
261 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262 ::unity::il2cpp_call!((::unity::module_base()+0x35584e0usize)as*mut u8,();
263(DeflateStream)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(stream),(crate::system::io::compression::compressionmode::CompressionMode)::core::convert::Into::into(mode),(bool)::core::convert::Into::into(leave_open),(i32)::core::convert::Into::into(windows_bits))
264 }
265 }
266 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionmode::CompressionMode, bool, bool)` overload"]
267 fn ctor_3(
268 self,
269 compressed_stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
270 mode: impl ::core::convert::Into<crate::system::io::compression::compressionmode::CompressionMode>,
271 leave_open: impl ::core::convert::Into<bool>,
272 gzip: impl ::core::convert::Into<bool>,
273 ) -> () {
274 unsafe {
275 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x3558340usize)as*mut u8,();
277(DeflateStream)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(compressed_stream),(crate::system::io::compression::compressionmode::CompressionMode)::core::convert::Into::into(mode),(bool)::core::convert::Into::into(leave_open),(bool)::core::convert::Into::into(gzip))
278 }
279 }
280 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionlevel::CompressionLevel, bool, i32)` overload"]
281 fn ctor_4(
282 self,
283 stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
284 compression_level: impl ::core::convert::Into<crate::system::io::compression::compressionlevel::CompressionLevel>,
285 leave_open: impl ::core::convert::Into<bool>,
286 windows_bits: impl ::core::convert::Into<i32>,
287 ) -> () {
288 unsafe {
289 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290 ::unity::il2cpp_call!((::unity::module_base()+0x35586b0usize)as*mut u8,();
291(DeflateStream)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(stream),(crate::system::io::compression::compressionlevel::CompressionLevel)::core::convert::Into::into(compression_level),(bool)::core::convert::Into::into(leave_open),(i32)::core::convert::Into::into(windows_bits))
292 }
293 }
294 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionlevel::CompressionLevel, bool, bool)` overload"]
295 fn ctor_5(
296 self,
297 stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
298 compression_level: impl ::core::convert::Into<crate::system::io::compression::compressionlevel::CompressionLevel>,
299 leave_open: impl ::core::convert::Into<bool>,
300 gzip: impl ::core::convert::Into<bool>,
301 ) -> () {
302 unsafe {
303 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304 ::unity::il2cpp_call!((::unity::module_base()+0x35586c0usize)as*mut u8,();
305(DeflateStream)__receiver,(crate::system::io::stream::Stream)::core::convert::Into::into(stream),(crate::system::io::compression::compressionlevel::CompressionLevel)::core::convert::Into::into(compression_level),(bool)::core::convert::Into::into(leave_open),(bool)::core::convert::Into::into(gzip))
306 }
307 }
308 #[doc = "`Dispose(bool)` overload"]
309 fn dispose(self, disposing: impl ::core::convert::Into<bool>) -> () {
310 unsafe {
311 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
312 {
313 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
314 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
315 panic!(
316 "unity: virtual slot {}
317 out of range (vtable len {}
318) on the runtime class behind {}
319 (method `{}
320`)",
321 19usize,
322 __vt.len(),
323 <DeflateStream as ::unity::ClassIdentity>::NAME,
324 "Dispose",
325 )
326 });
327 let __inner: extern "C" fn(DeflateStream, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
328 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
329 __inner(__receiver, ::core::convert::Into::into(disposing), __mi)
330 }
331 }
332 }
333 #[doc = "`ReadInternal(::unity::Array<u8>, i32, i32)` overload"]
334 fn read_internal(
335 self,
336 array: impl ::core::convert::Into<::unity::Array<u8>>,
337 offset: impl ::core::convert::Into<i32>,
338 count: impl ::core::convert::Into<i32>,
339 ) -> i32 {
340 unsafe {
341 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342 ::unity::il2cpp_call!((::unity::module_base()+0x3558840usize)as*mut u8,i32;
343(DeflateStream)__receiver,(::unity::Array<u8>)::core::convert::Into::into(array),(i32)::core::convert::Into::into(offset),(i32)::core::convert::Into::into(count))
344 }
345 }
346 #[doc = "`Read(::unity::Array<u8>, i32, i32)` overload"]
347 fn read(
348 self,
349 array: impl ::core::convert::Into<::unity::Array<u8>>,
350 offset: impl ::core::convert::Into<i32>,
351 count: impl ::core::convert::Into<i32>,
352 ) -> i32 {
353 unsafe {
354 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
355 {
356 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
357 let __vi = *__vt.get(29usize).unwrap_or_else(|| {
358 panic!(
359 "unity: virtual slot {}
360 out of range (vtable len {}
361) on the runtime class behind {}
362 (method `{}
363`)",
364 29usize,
365 __vt.len(),
366 <DeflateStream as ::unity::ClassIdentity>::NAME,
367 "Read",
368 )
369 });
370 let __inner: extern "C" fn(DeflateStream, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> i32 =
371 ::core::mem::transmute(__vi.method_ptr);
372 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
373 __inner(
374 __receiver,
375 ::core::convert::Into::into(array),
376 ::core::convert::Into::into(offset),
377 ::core::convert::Into::into(count),
378 __mi,
379 )
380 }
381 }
382 }
383 #[doc = "`WriteInternal(::unity::Array<u8>, i32, i32)` overload"]
384 fn write_internal(
385 self,
386 array: impl ::core::convert::Into<::unity::Array<u8>>,
387 offset: impl ::core::convert::Into<i32>,
388 count: impl ::core::convert::Into<i32>,
389 ) -> () {
390 unsafe {
391 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
392 ::unity::il2cpp_call!((::unity::module_base()+0x3558b50usize)as*mut u8,();
393(DeflateStream)__receiver,(::unity::Array<u8>)::core::convert::Into::into(array),(i32)::core::convert::Into::into(offset),(i32)::core::convert::Into::into(count))
394 }
395 }
396 #[doc = "`Write(::unity::Array<u8>, i32, i32)` overload"]
397 fn write(
398 self,
399 array: impl ::core::convert::Into<::unity::Array<u8>>,
400 offset: impl ::core::convert::Into<i32>,
401 count: impl ::core::convert::Into<i32>,
402 ) -> () {
403 unsafe {
404 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
405 {
406 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
407 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
408 panic!(
409 "unity: virtual slot {}
410 out of range (vtable len {}
411) on the runtime class behind {}
412 (method `{}
413`)",
414 31usize,
415 __vt.len(),
416 <DeflateStream as ::unity::ClassIdentity>::NAME,
417 "Write",
418 )
419 });
420 let __inner: extern "C" fn(DeflateStream, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> () =
421 ::core::mem::transmute(__vi.method_ptr);
422 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
423 __inner(
424 __receiver,
425 ::core::convert::Into::into(array),
426 ::core::convert::Into::into(offset),
427 ::core::convert::Into::into(count),
428 __mi,
429 )
430 }
431 }
432 }
433 #[doc = "`Flush()` overload"]
434 fn flush(self) -> () {
435 unsafe {
436 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
437 {
438 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
439 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
440 panic!(
441 "unity: virtual slot {}
442 out of range (vtable len {}
443) on the runtime class behind {}
444 (method `{}
445`)",
446 20usize,
447 __vt.len(),
448 <DeflateStream as ::unity::ClassIdentity>::NAME,
449 "Flush",
450 )
451 });
452 let __inner: extern "C" fn(DeflateStream, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
453 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
454 __inner(__receiver, __mi)
455 }
456 }
457 }
458 #[doc = "`Seek(i64, crate::system::io::seekorigin::SeekOrigin)` overload"]
459 fn seek(self, offset: impl ::core::convert::Into<i64>, origin: impl ::core::convert::Into<crate::system::io::seekorigin::SeekOrigin>) -> i64 {
460 unsafe {
461 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
462 {
463 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
464 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
465 panic!(
466 "unity: virtual slot {}
467 out of range (vtable len {}
468) on the runtime class behind {}
469 (method `{}
470`)",
471 27usize,
472 __vt.len(),
473 <DeflateStream as ::unity::ClassIdentity>::NAME,
474 "Seek",
475 )
476 });
477 let __inner: extern "C" fn(DeflateStream, i64, crate::system::io::seekorigin::SeekOrigin, ::unity::OptionalMethod) -> i64 =
478 ::core::mem::transmute(__vi.method_ptr);
479 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
480 __inner(__receiver, ::core::convert::Into::into(offset), ::core::convert::Into::into(origin), __mi)
481 }
482 }
483 }
484 #[doc = "`SetLength(i64)` overload"]
485 fn set_length(self, value: impl ::core::convert::Into<i64>) -> () {
486 unsafe {
487 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
488 {
489 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
490 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
491 panic!(
492 "unity: virtual slot {}
493 out of range (vtable len {}
494) on the runtime class behind {}
495 (method `{}
496`)",
497 28usize,
498 __vt.len(),
499 <DeflateStream as ::unity::ClassIdentity>::NAME,
500 "SetLength",
501 )
502 });
503 let __inner: extern "C" fn(DeflateStream, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
504 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
505 __inner(__receiver, ::core::convert::Into::into(value), __mi)
506 }
507 }
508 }
509 #[doc = "`get_CanRead()` overload"]
510 fn get_can_read(self) -> bool {
511 unsafe {
512 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
513 {
514 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
515 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
516 panic!(
517 "unity: virtual slot {}
518 out of range (vtable len {}
519) on the runtime class behind {}
520 (method `{}
521`)",
522 7usize,
523 __vt.len(),
524 <DeflateStream as ::unity::ClassIdentity>::NAME,
525 "get_CanRead",
526 )
527 });
528 let __inner: extern "C" fn(DeflateStream, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
529 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
530 __inner(__receiver, __mi)
531 }
532 }
533 }
534 #[doc = "`get_CanSeek()` overload"]
535 fn get_can_seek(self) -> bool {
536 unsafe {
537 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
538 {
539 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
540 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
541 panic!(
542 "unity: virtual slot {}
543 out of range (vtable len {}
544) on the runtime class behind {}
545 (method `{}
546`)",
547 8usize,
548 __vt.len(),
549 <DeflateStream as ::unity::ClassIdentity>::NAME,
550 "get_CanSeek",
551 )
552 });
553 let __inner: extern "C" fn(DeflateStream, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
554 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
555 __inner(__receiver, __mi)
556 }
557 }
558 }
559 #[doc = "`get_CanWrite()` overload"]
560 fn get_can_write(self) -> bool {
561 unsafe {
562 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
563 {
564 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
565 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
566 panic!(
567 "unity: virtual slot {}
568 out of range (vtable len {}
569) on the runtime class behind {}
570 (method `{}
571`)",
572 10usize,
573 __vt.len(),
574 <DeflateStream as ::unity::ClassIdentity>::NAME,
575 "get_CanWrite",
576 )
577 });
578 let __inner: extern "C" fn(DeflateStream, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
579 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
580 __inner(__receiver, __mi)
581 }
582 }
583 }
584 #[doc = "`get_Length()` overload"]
585 fn get_length(self) -> i64 {
586 unsafe {
587 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
588 {
589 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
590 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
591 panic!(
592 "unity: virtual slot {}
593 out of range (vtable len {}
594) on the runtime class behind {}
595 (method `{}
596`)",
597 11usize,
598 __vt.len(),
599 <DeflateStream as ::unity::ClassIdentity>::NAME,
600 "get_Length",
601 )
602 });
603 let __inner: extern "C" fn(DeflateStream, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
604 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
605 __inner(__receiver, __mi)
606 }
607 }
608 }
609 #[doc = "`get_Position()` overload"]
610 fn get_position(self) -> i64 {
611 unsafe {
612 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
613 {
614 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
615 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
616 panic!(
617 "unity: virtual slot {}
618 out of range (vtable len {}
619) on the runtime class behind {}
620 (method `{}
621`)",
622 12usize,
623 __vt.len(),
624 <DeflateStream as ::unity::ClassIdentity>::NAME,
625 "get_Position",
626 )
627 });
628 let __inner: extern "C" fn(DeflateStream, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__vi.method_ptr);
629 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
630 __inner(__receiver, __mi)
631 }
632 }
633 }
634 #[doc = "`set_Position(i64)` overload"]
635 fn set_position(self, value: impl ::core::convert::Into<i64>) -> () {
636 unsafe {
637 let __receiver = <DeflateStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
638 {
639 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
640 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
641 panic!(
642 "unity: virtual slot {}
643 out of range (vtable len {}
644) on the runtime class behind {}
645 (method `{}
646`)",
647 13usize,
648 __vt.len(),
649 <DeflateStream as ::unity::ClassIdentity>::NAME,
650 "set_Position",
651 )
652 });
653 let __inner: extern "C" fn(DeflateStream, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
654 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
655 __inner(__receiver, ::core::convert::Into::into(value), __mi)
656 }
657 }
658 }
659}
660
661#[cfg(feature = "system-io-compression-deflatestream")]
662impl<__T: IDeflateStream> IDeflateStreamMethods for __T {}
663
664#[cfg(feature = "system-io-compression-deflatestream")]
665impl DeflateStream {
666 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
667 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
668 }
669
670 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
671 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
672 }
673
674 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
675 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
676 }
677
678 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
679 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
680 }
681
682 pub fn ctor_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
683 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
684 }
685
686 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
687 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
688 }
689
690 pub fn read_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
691 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
692 }
693
694 pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
695 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
696 }
697
698 pub fn write_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
699 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
700 }
701
702 pub fn write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
703 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
704 }
705
706 pub fn flush_method_info() -> &'static ::unity::il2cpp::MethodInfo {
707 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
708 }
709
710 pub fn seek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
711 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
712 }
713
714 pub fn set_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
715 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
716 }
717
718 pub fn get_can_read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
719 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
720 }
721
722 pub fn get_can_seek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
723 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
724 }
725
726 pub fn get_can_write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
727 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
728 }
729
730 pub fn get_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
731 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
732 }
733
734 pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
735 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
736 }
737
738 pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
739 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
740 }
741}
742
743#[cfg(feature = "system-io-compression-deflatestream")]
744impl DeflateStream {
745 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
746 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>, disposing: bool) -> () {
747 let __mi = Self::dispose_method_info();
748 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
749 __inner(this.into(), disposing, ::core::option::Option::None)
750 }
751
752 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `Read`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
753 pub unsafe fn read(this: impl ::core::convert::Into<::unity::IlInstance>, array: ::unity::Array<u8>, offset: i32, count: i32) -> i32 {
754 let __mi = Self::read_method_info();
755 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> i32 =
756 ::core::mem::transmute(__mi.method_ptr);
757 __inner(this.into(), array, offset, count, ::core::option::Option::None)
758 }
759
760 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `Write`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
761 pub unsafe fn write(this: impl ::core::convert::Into<::unity::IlInstance>, array: ::unity::Array<u8>, offset: i32, count: i32) -> () {
762 let __mi = Self::write_method_info();
763 let __inner: extern "C" fn(::unity::IlInstance, ::unity::Array<u8>, i32, i32, ::unity::OptionalMethod) -> () =
764 ::core::mem::transmute(__mi.method_ptr);
765 __inner(this.into(), array, offset, count, ::core::option::Option::None)
766 }
767
768 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `Flush`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
769 pub unsafe fn flush(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
770 let __mi = Self::flush_method_info();
771 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
772 __inner(this.into(), ::core::option::Option::None)
773 }
774
775 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `Seek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
776 pub unsafe fn seek(this: impl ::core::convert::Into<::unity::IlInstance>, offset: i64, origin: crate::system::io::seekorigin::SeekOrigin) -> i64 {
777 let __mi = Self::seek_method_info();
778 let __inner: extern "C" fn(::unity::IlInstance, i64, crate::system::io::seekorigin::SeekOrigin, ::unity::OptionalMethod) -> i64 =
779 ::core::mem::transmute(__mi.method_ptr);
780 __inner(this.into(), offset, origin, ::core::option::Option::None)
781 }
782
783 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `SetLength`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
784 pub unsafe fn set_length(this: impl ::core::convert::Into<::unity::IlInstance>, value: i64) -> () {
785 let __mi = Self::set_length_method_info();
786 let __inner: extern "C" fn(::unity::IlInstance, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
787 __inner(this.into(), value, ::core::option::Option::None)
788 }
789
790 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `get_CanRead`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
791 pub unsafe fn get_can_read(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
792 let __mi = Self::get_can_read_method_info();
793 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
794 __inner(this.into(), ::core::option::Option::None)
795 }
796
797 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `get_CanSeek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
798 pub unsafe fn get_can_seek(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
799 let __mi = Self::get_can_seek_method_info();
800 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
801 __inner(this.into(), ::core::option::Option::None)
802 }
803
804 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `get_CanWrite`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
805 pub unsafe fn get_can_write(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
806 let __mi = Self::get_can_write_method_info();
807 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
808 __inner(this.into(), ::core::option::Option::None)
809 }
810
811 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `get_Length`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
812 pub unsafe fn get_length(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
813 let __mi = Self::get_length_method_info();
814 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
815 __inner(this.into(), ::core::option::Option::None)
816 }
817
818 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `get_Position`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
819 pub unsafe fn get_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> i64 {
820 let __mi = Self::get_position_method_info();
821 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i64 = ::core::mem::transmute(__mi.method_ptr);
822 __inner(this.into(), ::core::option::Option::None)
823 }
824
825 #[doc = "Direct (non-virtual) call to `DeflateStream`'s own `set_Position`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
826 pub unsafe fn set_position(this: impl ::core::convert::Into<::unity::IlInstance>, value: i64) -> () {
827 let __mi = Self::set_position_method_info();
828 let __inner: extern "C" fn(::unity::IlInstance, i64, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
829 __inner(this.into(), value, ::core::option::Option::None)
830 }
831}
832
833#[cfg(feature = "system-io-compression-deflatestream")]
834impl DeflateStream {
835 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionmode::CompressionMode)` — overload selector"]
836 pub fn new(stream: crate::system::io::stream::Stream, mode: crate::system::io::compression::compressionmode::CompressionMode) -> Self {
837 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
838 panic!(
839 "{}
840::{}
841 failed to instantiate",
842 ::core::stringify!(DeflateStream),
843 ::core::stringify!(new),
844 )
845 });
846 <Self as IDeflateStreamMethods>::ctor(this, stream, mode);
847 this
848 }
849
850 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionmode::CompressionMode, bool, i32)` — overload selector"]
851 pub fn new_2(
852 stream: crate::system::io::stream::Stream,
853 mode: crate::system::io::compression::compressionmode::CompressionMode,
854 leave_open: bool,
855 windows_bits: i32,
856 ) -> Self {
857 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
858 panic!(
859 "{}
860::{}
861 failed to instantiate",
862 ::core::stringify!(DeflateStream),
863 ::core::stringify!(new_2),
864 )
865 });
866 <Self as IDeflateStreamMethods>::ctor_2(this, stream, mode, leave_open, windows_bits);
867 this
868 }
869
870 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionmode::CompressionMode, bool, bool)` — overload selector"]
871 pub fn new_3(
872 compressed_stream: crate::system::io::stream::Stream,
873 mode: crate::system::io::compression::compressionmode::CompressionMode,
874 leave_open: bool,
875 gzip: bool,
876 ) -> Self {
877 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
878 panic!(
879 "{}
880::{}
881 failed to instantiate",
882 ::core::stringify!(DeflateStream),
883 ::core::stringify!(new_3),
884 )
885 });
886 <Self as IDeflateStreamMethods>::ctor_3(this, compressed_stream, mode, leave_open, gzip);
887 this
888 }
889
890 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionlevel::CompressionLevel, bool, i32)` — overload selector"]
891 pub fn new_4(
892 stream: crate::system::io::stream::Stream,
893 compression_level: crate::system::io::compression::compressionlevel::CompressionLevel,
894 leave_open: bool,
895 windows_bits: i32,
896 ) -> Self {
897 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
898 panic!(
899 "{}
900::{}
901 failed to instantiate",
902 ::core::stringify!(DeflateStream),
903 ::core::stringify!(new_4),
904 )
905 });
906 <Self as IDeflateStreamMethods>::ctor_4(this, stream, compression_level, leave_open, windows_bits);
907 this
908 }
909
910 #[doc = "`.ctor(crate::system::io::stream::Stream, crate::system::io::compression::compressionlevel::CompressionLevel, bool, bool)` — overload selector"]
911 pub fn new_5(
912 stream: crate::system::io::stream::Stream,
913 compression_level: crate::system::io::compression::compressionlevel::CompressionLevel,
914 leave_open: bool,
915 gzip: bool,
916 ) -> Self {
917 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
918 panic!(
919 "{}
920::{}
921 failed to instantiate",
922 ::core::stringify!(DeflateStream),
923 ::core::stringify!(new_5),
924 )
925 });
926 <Self as IDeflateStreamMethods>::ctor_5(this, stream, compression_level, leave_open, gzip);
927 this
928 }
929}
930
931#[cfg(feature = "system-io-compression-deflatestream")]
932#[doc(hidden)]
933pub mod prelude {
934 pub use super::{
935 DeflateStream, DeflateStream_ReadMethod, DeflateStream_WriteMethod, IDeflateStream, IDeflateStreamMethods, IDeflateStream_ReadMethod,
936 IDeflateStream_ReadMethodMethods, IDeflateStream_WriteMethod, IDeflateStream_WriteMethodMethods,
937 };
938 #[cfg(feature = "system-delegate")]
939 pub use crate::system::delegate::IDelegateMethods;
940 #[cfg(feature = "system-io-stream")]
941 pub use crate::system::io::stream::IStreamMethods;
942 #[cfg(feature = "system-multicastdelegate")]
943 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
944 #[cfg(feature = "system-object")]
945 pub use crate::system::object::IObjectMethods;
946 pub use crate::system::{delegate::IDelegate, io::stream::IStream, multicastdelegate::IMulticastDelegate, object::IObject};
947}