engage/generated/app/
debugstream.rs1#[cfg(feature = "app-debugstream-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::stream_2::{IStream_2, Stream_2},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugstream/DebugStream.md"))]
14 #[::unity::class(namespace = "App", name = "DebugStream")]
15 #[parent(crate::app::stream_2::Stream_2)]
16 pub struct DebugStream {}
17}
18
19#[cfg(feature = "app-debugstream-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-debugstream")]
23impl DebugStream {
24 #[doc = "`Delete(::unity::Il2CppString)` overload"]
25 pub fn delete(name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
26 unsafe {
27 ::unity::il2cpp_call!((::unity::module_base()+0x2a10410usize)as*mut u8,();
28(::unity::Il2CppString)::core::convert::Into::into(name))
29 }
30 }
31}
32
33#[cfg(feature = "app-debugstream")]
34pub trait IDebugStreamMethods: IDebugStream {
35 #[doc = "`.ctor(i32)` overload"]
36 fn ctor(self, size: impl ::core::convert::Into<i32>) -> () {
37 unsafe {
38 let __receiver = <DebugStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 ::unity::il2cpp_call!((::unity::module_base()+0x2a103b0usize)as*mut u8,();
40(DebugStream)__receiver,(i32)::core::convert::Into::into(size))
41 }
42 }
43 #[doc = "`.ctor(::unity::Array<u8>)` overload"]
44 fn ctor_2(self, buffer: impl ::core::convert::Into<::unity::Array<u8>>) -> () {
45 unsafe {
46 let __receiver = <DebugStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47 ::unity::il2cpp_call!((::unity::module_base()+0x2a103c0usize)as*mut u8,();
48(DebugStream)__receiver,(::unity::Array<u8>)::core::convert::Into::into(buffer))
49 }
50 }
51 #[doc = "`Save(::unity::Il2CppString)` overload"]
52 fn save(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
53 unsafe {
54 let __receiver = <DebugStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 ::unity::il2cpp_call!((::unity::module_base()+0x2a103d0usize)as*mut u8,();
56(DebugStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
57 }
58 }
59 #[doc = "`Load(::unity::Il2CppString)` overload"]
60 fn load(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
61 unsafe {
62 let __receiver = <DebugStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x2a103e0usize)as*mut u8,bool;
64(DebugStream)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
65 }
66 }
67 #[doc = "`WriteMembers(crate::system::object::Object)` overload"]
68 fn write_members(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> () {
69 unsafe {
70 let __receiver = <DebugStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x2a103f0usize)as*mut u8,();
72(DebugStream)__receiver,(crate::system::object::Object)::core::convert::Into::into(obj))
73 }
74 }
75 #[doc = "`ReadMembers(crate::system::object::Object)` overload"]
76 fn read_members(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> () {
77 unsafe {
78 let __receiver = <DebugStream as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x2a10400usize)as*mut u8,();
80(DebugStream)__receiver,(crate::system::object::Object)::core::convert::Into::into(obj))
81 }
82 }
83}
84
85#[cfg(feature = "app-debugstream")]
86impl<__T: IDebugStream> IDebugStreamMethods for __T {}
87
88#[cfg(feature = "app-debugstream")]
89impl DebugStream {
90 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
92 }
93
94 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
96 }
97
98 pub fn save_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
100 }
101
102 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
104 }
105
106 pub fn write_members_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
108 }
109
110 pub fn read_members_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
112 }
113
114 pub fn delete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
116 }
117}
118
119#[cfg(feature = "app-debugstream")]
120impl DebugStream {
121 #[doc = "`.ctor(i32)` — overload selector"]
122 pub fn new(size: i32) -> Self {
123 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
124 panic!(
125 "{}
126::{}
127 failed to instantiate",
128 ::core::stringify!(DebugStream),
129 ::core::stringify!(new),
130 )
131 });
132 <Self as IDebugStreamMethods>::ctor(this, size);
133 this
134 }
135
136 #[doc = "`.ctor(::unity::Array<u8>)` — overload selector"]
137 pub fn new_2(buffer: ::unity::Array<u8>) -> Self {
138 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
139 panic!(
140 "{}
141::{}
142 failed to instantiate",
143 ::core::stringify!(DebugStream),
144 ::core::stringify!(new_2),
145 )
146 });
147 <Self as IDebugStreamMethods>::ctor_2(this, buffer);
148 this
149 }
150}
151
152#[cfg(feature = "app-debugstream")]
153#[doc(hidden)]
154pub mod prelude {
155 pub use super::{DebugStream, IDebugStream, IDebugStreamMethods};
156 #[cfg(feature = "app-stream_2")]
157 pub use crate::app::stream_2::IStream_2Methods;
158 #[cfg(feature = "system-object")]
159 pub use crate::system::object::IObjectMethods;
160 pub use crate::{app::stream_2::IStream_2, system::object::IObject};
161}