engage/generated/unity_engine/profiling/memory/experimental/
memoryprofiler.rs1#[cfg(feature = "unity_engine-profiling-memory-experimental-memoryprofiler-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/profiling/memory/experimental/memoryprofiler/MemoryProfiler.md"))]
11 #[::unity::class(namespace = "UnityEngine.Profiling.Memory.Experimental", name = "MemoryProfiler")]
12 #[parent(crate::system::object::Object)]
13 pub struct MemoryProfiler {
14 #[static_field]
15 #[rename(name = "m_SnapshotFinished")]
16 pub m_snapshot_finished: crate::system::action_2::Action_2<::unity::Il2CppString, bool>,
17 #[static_field]
18 #[rename(name = "m_SaveScreenshotToDisk")]
19 pub m_save_screenshot_to_disk: crate::system::action_3::Action_3<
20 ::unity::Il2CppString,
21 bool,
22 crate::unity_engine::profiling::experimental::debugscreencapture::DebugScreenCapture,
23 >,
24 #[static_field]
25 #[rename(name = "createMetaData")]
26 pub create_meta_data: crate::system::action_1::Action_1<crate::unity_engine::profiling::memory::experimental::metadata::MetaData>,
27 }
28}
29
30#[cfg(feature = "unity_engine-profiling-memory-experimental-memoryprofiler-types")]
31pub use __types::*;
32
33#[cfg(feature = "unity_engine-profiling-memory-experimental-memoryprofiler")]
34impl MemoryProfiler {
35 #[doc = "`PrepareMetadata()` overload"]
36 pub fn prepare_metadata() -> ::unity::Array<u8> {
37 unsafe {
38 ::unity::il2cpp_call!((::unity::module_base()+0x32e2740usize)as*mut u8, ::unity::Array<u8> ;
39 )
40 }
41 }
42
43 #[doc = "`WriteIntToByteArray(::unity::Array<u8>, i32, i32)` overload"]
44 pub fn write_int_to_byte_array(
45 array: impl ::core::convert::Into<::unity::Array<u8>>,
46 offset: impl ::core::convert::Into<i32>,
47 value: impl ::core::convert::Into<i32>,
48 ) -> i32 {
49 unsafe {
50 ::unity::il2cpp_call!((::unity::module_base()+0x32e29c0usize)as*mut u8,i32;
51(::unity::Array<u8>)::core::convert::Into::into(array),(i32)::core::convert::Into::into(offset),(i32)::core::convert::Into::into(value))
52 }
53 }
54
55 #[doc = "`WriteStringToByteArray(::unity::Array<u8>, i32, ::unity::Il2CppString)` overload"]
56 pub fn write_string_to_byte_array(
57 array: impl ::core::convert::Into<::unity::Array<u8>>,
58 offset: impl ::core::convert::Into<i32>,
59 value: impl ::core::convert::Into<::unity::Il2CppString>,
60 ) -> i32 {
61 unsafe {
62 ::unity::il2cpp_call!((::unity::module_base()+0x32e2a60usize)as*mut u8,i32;
63(::unity::Array<u8>)::core::convert::Into::into(array),(i32)::core::convert::Into::into(offset),(::unity::Il2CppString)::core::convert::Into::into(value))
64 }
65 }
66
67 #[doc = "`FinalizeSnapshot(::unity::Il2CppString, bool)` overload"]
68 pub fn finalize_snapshot(path: impl ::core::convert::Into<::unity::Il2CppString>, result: impl ::core::convert::Into<bool>) -> () {
69 unsafe {
70 ::unity::il2cpp_call!((::unity::module_base()+0x32e2b10usize)as*mut u8,();
71(::unity::Il2CppString)::core::convert::Into::into(path),(bool)::core::convert::Into::into(result))
72 }
73 }
74
75 #[doc = "`SaveScreenshotToDisk(::unity::Il2CppString, bool, ::unity::IntPtr, i32, crate::unity_engine::textureformat::TextureFormat, i32, i32)` overload"]
76 pub fn save_screenshot_to_disk(
77 path: impl ::core::convert::Into<::unity::Il2CppString>,
78 result: impl ::core::convert::Into<bool>,
79 pixels_ptr: impl ::core::convert::Into<::unity::IntPtr>,
80 pixels_count: impl ::core::convert::Into<i32>,
81 format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
82 width: impl ::core::convert::Into<i32>,
83 height: impl ::core::convert::Into<i32>,
84 ) -> () {
85 unsafe {
86 ::unity::il2cpp_call!((::unity::module_base()+0x32e2bb0usize)as*mut u8,();
87(::unity::Il2CppString)::core::convert::Into::into(path),(bool)::core::convert::Into::into(result),(::unity::IntPtr)::core::convert::Into::into(pixels_ptr),(i32)::core::convert::Into::into(pixels_count),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format),(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height))
88 }
89 }
90}
91
92#[cfg(feature = "unity_engine-profiling-memory-experimental-memoryprofiler")]
93impl MemoryProfiler {
94 pub fn prepare_metadata_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
96 }
97
98 pub fn write_int_to_byte_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
100 }
101
102 pub fn write_string_to_byte_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
104 }
105
106 pub fn finalize_snapshot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
108 }
109
110 pub fn save_screenshot_to_disk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
112 }
113}
114
115#[cfg(feature = "unity_engine-profiling-memory-experimental-memoryprofiler")]
116#[doc(hidden)]
117pub mod prelude {
118 pub use super::{IMemoryProfiler, MemoryProfiler};
119 pub use crate::system::object::IObject;
120 #[cfg(feature = "system-object")]
121 pub use crate::system::object::IObjectMethods;
122}