Skip to main content

engage/generated/unity_engine/networking/
uploadhandlerraw.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-networking-uploadhandlerraw-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::networking::uploadhandler::{IUploadHandler, UploadHandler},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/uploadhandlerraw/UploadHandlerRaw.md"))]
14    #[::unity::class(namespace = "UnityEngine.Networking", name = "UploadHandlerRaw")]
15    #[parent(crate::unity_engine::networking::uploadhandler::UploadHandler)]
16    pub struct UploadHandlerRaw {}
17}
18
19#[cfg(feature = "unity_engine-networking-uploadhandlerraw-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-networking-uploadhandlerraw")]
23impl UploadHandlerRaw {
24    #[doc = "`Create(crate::unity_engine::networking::uploadhandlerraw::UploadHandlerRaw, ::unity::Array<u8>)` overload"]
25    pub fn create(
26        self_: impl ::core::convert::Into<crate::unity_engine::networking::uploadhandlerraw::UploadHandlerRaw>,
27        data: impl ::core::convert::Into<::unity::Array<u8>>,
28    ) -> ::unity::IntPtr {
29        unsafe {
30            ::unity::il2cpp_call!((::unity::module_base()+0x3f1cd10usize)as*mut u8, ::unity::IntPtr;
31(crate::unity_engine::networking::uploadhandlerraw::UploadHandlerRaw)::core::convert::Into::into(self_),(::unity::Array<u8>)::core::convert::Into::into(data))
32        }
33    }
34}
35
36#[cfg(feature = "unity_engine-networking-uploadhandlerraw")]
37pub trait IUploadHandlerRawMethods: IUploadHandlerRaw {
38    #[doc = "`.ctor(::unity::Array<u8>)` overload"]
39    fn ctor(self, data: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
40        unsafe {
41            let __receiver = <UploadHandlerRaw as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            ::unity::il2cpp_call!((::unity::module_base()+0x3f1c900usize)as*mut u8,();
43(UploadHandlerRaw)__receiver,(::unity::Array<u8>)::core::convert::Into::into(data))
44        }
45    }
46}
47
48#[cfg(feature = "unity_engine-networking-uploadhandlerraw")]
49impl<__T: IUploadHandlerRaw> IUploadHandlerRawMethods for __T {}
50
51#[cfg(feature = "unity_engine-networking-uploadhandlerraw")]
52impl UploadHandlerRaw {
53    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
55    }
56
57    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
58        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
59    }
60}
61
62#[cfg(feature = "unity_engine-networking-uploadhandlerraw")]
63impl UploadHandlerRaw {
64    #[doc = "`.ctor(::unity::Array<u8>)` — overload selector"]
65    pub fn new(data: ::unity::Array<u8>) -> Self {
66        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
67            panic!(
68                "{}
69::{}
70 failed to instantiate",
71                ::core::stringify!(UploadHandlerRaw),
72                ::core::stringify!(new),
73            )
74        });
75        <Self as IUploadHandlerRawMethods>::ctor(this, data);
76        this
77    }
78}
79
80#[cfg(feature = "unity_engine-networking-uploadhandlerraw")]
81#[doc(hidden)]
82pub mod prelude {
83    pub use super::{IUploadHandlerRaw, IUploadHandlerRawMethods, UploadHandlerRaw};
84    #[cfg(feature = "system-object")]
85    pub use crate::system::object::IObjectMethods;
86    #[cfg(feature = "unity_engine-networking-uploadhandler")]
87    pub use crate::unity_engine::networking::uploadhandler::IUploadHandlerMethods;
88    pub use crate::{system::object::IObject, unity_engine::networking::uploadhandler::IUploadHandler};
89}