engage/generated/unity_engine/networking/
uploadhandler.rs1#[cfg(feature = "unity_engine-networking-uploadhandler-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/uploadhandler/UploadHandler.md"))]
11 #[::unity::class(namespace = "UnityEngine.Networking", name = "UploadHandler")]
12 #[parent(crate::system::object::Object)]
13 pub struct UploadHandler {
14 #[offset(16)]
15 #[rename(name = "m_Ptr")]
16 pub m_ptr: ::unity::IntPtr,
17 }
18}
19
20#[cfg(feature = "unity_engine-networking-uploadhandler-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-networking-uploadhandler")]
24pub trait IUploadHandlerMethods: IUploadHandler {
25 #[doc = "`Release()` overload"]
26 fn release(self) -> () {
27 unsafe {
28 let __receiver = <UploadHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 ::unity::il2cpp_call!((::unity::module_base()+0x3f1cb30usize)as*mut u8,();
30(UploadHandler)__receiver)
31 }
32 }
33 #[doc = "`.ctor()` overload"]
34 fn ctor(self) -> () {
35 unsafe {
36 let __receiver = <UploadHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 ::unity::il2cpp_call!((::unity::module_base()+0x3f1cb80usize)as*mut u8,();
38(UploadHandler)__receiver)
39 }
40 }
41 #[doc = "`Finalize()` overload"]
42 fn finalize(self) -> () {
43 unsafe {
44 let __receiver = <UploadHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 {
46 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
47 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
48 panic!(
49 "unity: virtual slot {}
50 out of range (vtable len {}
51) on the runtime class behind {}
52 (method `{}
53`)",
54 1usize,
55 __vt.len(),
56 <UploadHandler as ::unity::ClassIdentity>::NAME,
57 "Finalize",
58 )
59 });
60 let __inner: extern "C" fn(UploadHandler, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
61 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
62 __inner(__receiver, __mi)
63 }
64 }
65 }
66 #[doc = "`Dispose()` overload"]
67 fn dispose(self) -> () {
68 unsafe {
69 let __receiver = <UploadHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 {
71 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
72 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
73 panic!(
74 "unity: virtual slot {}
75 out of range (vtable len {}
76) on the runtime class behind {}
77 (method `{}
78`)",
79 4usize,
80 __vt.len(),
81 <UploadHandler as ::unity::ClassIdentity>::NAME,
82 "Dispose",
83 )
84 });
85 let __inner: extern "C" fn(UploadHandler, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
86 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
87 __inner(__receiver, __mi)
88 }
89 }
90 }
91 #[doc = "`set_contentType(::unity::Il2CppString)` overload"]
92 fn set_content_type(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
93 unsafe {
94 let __receiver = <UploadHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x3f1cc60usize)as*mut u8,();
96(UploadHandler)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
97 }
98 }
99 #[doc = "`InternalSetContentType(::unity::Il2CppString)` overload"]
100 fn internal_set_content_type(self, new_content_type: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
101 unsafe {
102 let __receiver = <UploadHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x3f1ccc0usize)as*mut u8,();
104(UploadHandler)__receiver,(::unity::Il2CppString)::core::convert::Into::into(new_content_type))
105 }
106 }
107}
108
109#[cfg(feature = "unity_engine-networking-uploadhandler")]
110impl<__T: IUploadHandler> IUploadHandlerMethods for __T {}
111
112#[cfg(feature = "unity_engine-networking-uploadhandler")]
113impl UploadHandler {
114 pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
116 }
117
118 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
120 }
121
122 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
124 }
125
126 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
128 }
129
130 pub fn set_content_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
132 }
133
134 pub fn internal_set_content_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
136 }
137}
138
139#[cfg(feature = "unity_engine-networking-uploadhandler")]
140impl UploadHandler {
141 #[doc = "Direct (non-virtual) call to `UploadHandler`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
142 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
143 let __mi = Self::finalize_method_info();
144 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
145 __inner(this.into(), ::core::option::Option::None)
146 }
147
148 #[doc = "Direct (non-virtual) call to `UploadHandler`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
150 let __mi = Self::dispose_method_info();
151 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
152 __inner(this.into(), ::core::option::Option::None)
153 }
154}
155
156#[cfg(feature = "unity_engine-networking-uploadhandler")]
157impl UploadHandler {
158 #[doc = "`.ctor()` — no args"]
159 pub fn new() -> Self {
160 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
161 panic!(
162 "{}
163::{}
164 failed to instantiate",
165 ::core::stringify!(UploadHandler),
166 ::core::stringify!(new),
167 )
168 });
169 <Self as IUploadHandlerMethods>::ctor(this);
170 this
171 }
172}
173
174#[cfg(feature = "unity_engine-networking-uploadhandler")]
175#[doc(hidden)]
176pub mod prelude {
177 pub use super::{IUploadHandler, IUploadHandlerMethods, UploadHandler};
178 pub use crate::system::object::IObject;
179 #[cfg(feature = "system-object")]
180 pub use crate::system::object::IObjectMethods;
181}