engage/generated/unity_engine/
managedstreamhelpers.rs1#[cfg(feature = "unity_engine-managedstreamhelpers-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/managedstreamhelpers/ManagedStreamHelpers.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "ManagedStreamHelpers")]
12 #[parent(crate::system::object::Object)]
13 pub struct ManagedStreamHelpers {}
14}
15
16#[cfg(feature = "unity_engine-managedstreamhelpers-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-managedstreamhelpers")]
20impl ManagedStreamHelpers {
21 #[doc = "`ValidateLoadFromStream(crate::system::io::stream::Stream)` overload"]
22 pub fn validate_load_from_stream(stream: impl ::core::convert::Into<crate::system::io::stream::Stream>) -> () {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x32d8a40usize)as*mut u8,();
25(crate::system::io::stream::Stream)::core::convert::Into::into(stream))
26 }
27 }
28
29 #[doc = "`ManagedStreamRead(::unity::Array<u8>, i32, i32, crate::system::io::stream::Stream, ::unity::IntPtr)` overload"]
30 pub fn managed_stream_read(
31 buffer: impl ::core::convert::Into<::unity::Array<u8>>,
32 offset: impl ::core::convert::Into<i32>,
33 count: impl ::core::convert::Into<i32>,
34 stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
35 return_value_address: impl ::core::convert::Into<::unity::IntPtr>,
36 ) -> () {
37 unsafe {
38 ::unity::il2cpp_call!((::unity::module_base()+0x32d8b50usize)as*mut u8,();
39(::unity::Array<u8>)::core::convert::Into::into(buffer),(i32)::core::convert::Into::into(offset),(i32)::core::convert::Into::into(count),(crate::system::io::stream::Stream)::core::convert::Into::into(stream),(::unity::IntPtr)::core::convert::Into::into(return_value_address))
40 }
41 }
42
43 #[doc = "`ManagedStreamSeek(i64, u32, crate::system::io::stream::Stream, ::unity::IntPtr)` overload"]
44 pub fn managed_stream_seek(
45 offset: impl ::core::convert::Into<i64>,
46 origin: impl ::core::convert::Into<u32>,
47 stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
48 return_value_address: impl ::core::convert::Into<::unity::IntPtr>,
49 ) -> () {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x32d8c60usize)as*mut u8,();
52(i64)::core::convert::Into::into(offset),(u32)::core::convert::Into::into(origin),(crate::system::io::stream::Stream)::core::convert::Into::into(stream),(::unity::IntPtr)::core::convert::Into::into(return_value_address))
53 }
54 }
55
56 #[doc = "`ManagedStreamLength(crate::system::io::stream::Stream, ::unity::IntPtr)` overload"]
57 pub fn managed_stream_length(
58 stream: impl ::core::convert::Into<crate::system::io::stream::Stream>,
59 return_value_address: impl ::core::convert::Into<::unity::IntPtr>,
60 ) -> () {
61 unsafe {
62 ::unity::il2cpp_call!((::unity::module_base()+0x32d8d60usize)as*mut u8,();
63(crate::system::io::stream::Stream)::core::convert::Into::into(stream),(::unity::IntPtr)::core::convert::Into::into(return_value_address))
64 }
65 }
66}
67
68#[cfg(feature = "unity_engine-managedstreamhelpers")]
69impl ManagedStreamHelpers {
70 pub fn validate_load_from_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
72 }
73
74 pub fn managed_stream_read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
76 }
77
78 pub fn managed_stream_seek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
80 }
81
82 pub fn managed_stream_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
84 }
85}
86
87#[cfg(feature = "unity_engine-managedstreamhelpers")]
88#[doc(hidden)]
89pub mod prelude {
90 pub use super::{IManagedStreamHelpers, ManagedStreamHelpers};
91 pub use crate::system::object::IObject;
92 #[cfg(feature = "system-object")]
93 pub use crate::system::object::IObjectMethods;
94}