engage/generated/unity_engine/networking/
downloadhandlerbuffer.rs1#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer-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::downloadhandler::{DownloadHandler, IDownloadHandler},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/downloadhandlerbuffer/DownloadHandlerBuffer.md"))]
14 #[::unity::class(namespace = "UnityEngine.Networking", name = "DownloadHandlerBuffer")]
15 #[parent(crate::unity_engine::networking::downloadhandler::DownloadHandler)]
16 pub struct DownloadHandlerBuffer {}
17}
18
19#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer")]
23impl DownloadHandlerBuffer {
24 #[doc = "`Create(crate::unity_engine::networking::downloadhandlerbuffer::DownloadHandlerBuffer)` overload"]
25 pub fn create(obj: impl ::core::convert::Into<crate::unity_engine::networking::downloadhandlerbuffer::DownloadHandlerBuffer>) -> ::unity::IntPtr {
26 unsafe {
27 ::unity::il2cpp_call!((::unity::module_base()+0x3f18990usize)as*mut u8, ::unity::IntPtr;
28(crate::unity_engine::networking::downloadhandlerbuffer::DownloadHandlerBuffer)::core::convert::Into::into(obj))
29 }
30 }
31}
32
33#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer")]
34pub trait IDownloadHandlerBufferMethods: IDownloadHandlerBuffer {
35 #[doc = "`InternalCreateBuffer()` overload"]
36 fn internal_create_buffer(self) -> () {
37 unsafe {
38 let __receiver = <DownloadHandlerBuffer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 ::unity::il2cpp_call!((::unity::module_base()+0x3f189e0usize)as*mut u8,();
40(DownloadHandlerBuffer)__receiver)
41 }
42 }
43 #[doc = "`.ctor()` overload"]
44 fn ctor(self) -> () {
45 unsafe {
46 let __receiver = <DownloadHandlerBuffer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47 ::unity::il2cpp_call!((::unity::module_base()+0x3f18a30usize)as*mut u8,();
48(DownloadHandlerBuffer)__receiver)
49 }
50 }
51 #[doc = "`GetData()` overload"]
52 fn get_data(self) -> ::unity::Array<u8> {
53 unsafe {
54 let __receiver = <DownloadHandlerBuffer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 {
56 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
57 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
58 panic!(
59 "unity: virtual slot {}
60 out of range (vtable len {}
61) on the runtime class behind {}
62 (method `{}
63`)",
64 5usize,
65 __vt.len(),
66 <DownloadHandlerBuffer as ::unity::ClassIdentity>::NAME,
67 "GetData",
68 )
69 });
70 let __inner: extern "C" fn(DownloadHandlerBuffer, ::unity::OptionalMethod) -> ::unity::Array<u8> =
71 ::core::mem::transmute(__vi.method_ptr);
72 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
73 __inner(__receiver, __mi)
74 }
75 }
76 }
77 #[doc = "`InternalGetData()` overload"]
78 fn internal_get_data(self) -> ::unity::Array<u8> {
79 unsafe {
80 let __receiver = <DownloadHandlerBuffer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x3f18ad0usize)as*mut u8, ::unity::Array<u8> ;
82(DownloadHandlerBuffer)__receiver)
83 }
84 }
85}
86
87#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer")]
88impl<__T: IDownloadHandlerBuffer> IDownloadHandlerBufferMethods for __T {}
89
90#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer")]
91impl DownloadHandlerBuffer {
92 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
94 }
95
96 pub fn internal_create_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
98 }
99
100 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
102 }
103
104 pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
106 }
107
108 pub fn internal_get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
110 }
111}
112
113#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer")]
114impl DownloadHandlerBuffer {
115 #[doc = "Direct (non-virtual) call to `DownloadHandlerBuffer`'s own `GetData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
116 pub unsafe fn get_data(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Array<u8> {
117 let __mi = Self::get_data_method_info();
118 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<u8> = ::core::mem::transmute(__mi.method_ptr);
119 __inner(this.into(), ::core::option::Option::None)
120 }
121}
122
123#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer")]
124impl DownloadHandlerBuffer {
125 #[doc = "`.ctor()` — no args"]
126 pub fn new() -> Self {
127 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
128 panic!(
129 "{}
130::{}
131 failed to instantiate",
132 ::core::stringify!(DownloadHandlerBuffer),
133 ::core::stringify!(new),
134 )
135 });
136 <Self as IDownloadHandlerBufferMethods>::ctor(this);
137 this
138 }
139}
140
141#[cfg(feature = "unity_engine-networking-downloadhandlerbuffer")]
142#[doc(hidden)]
143pub mod prelude {
144 pub use super::{DownloadHandlerBuffer, IDownloadHandlerBuffer, IDownloadHandlerBufferMethods};
145 #[cfg(feature = "system-object")]
146 pub use crate::system::object::IObjectMethods;
147 #[cfg(feature = "unity_engine-networking-downloadhandler")]
148 pub use crate::unity_engine::networking::downloadhandler::IDownloadHandlerMethods;
149 pub use crate::{system::object::IObject, unity_engine::networking::downloadhandler::IDownloadHandler};
150}