Skip to main content

engage/generated/root/
akbasearray_1.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akbasearray_1-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/root/akbasearray_1/AkBaseArray_1.md"))]
11    #[::unity::class(namespace = "", name = "AkBaseArray`1")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkBaseArray_1<T0: ::unity::ClassIdentity> {
14        #[rename(name = "m_Buffer")]
15        pub m_buffer: ::unity::IntPtr,
16    }
17}
18
19#[cfg(feature = "root-akbasearray_1-types")]
20pub use __types::*;
21
22#[cfg(feature = "root-akbasearray_1")]
23#[::unity::methods]
24impl<T0: ::unity::ClassIdentity> AkBaseArray_1<T0> {
25    #[doc = "`.ctor(i32)` overload"]
26    #[method(name = ".ctor", args = 1)]
27    pub fn ctor(self, capacity: i32) -> ();
28
29    #[doc = "`Dispose()` overload"]
30    #[method(name = "Dispose", args = 0)]
31    pub fn dispose(self) -> ();
32
33    #[doc = "`Finalize()` overload"]
34    #[method(name = "Finalize", args = 0)]
35    pub fn finalize(self) -> ();
36
37    #[doc = "`get_Capacity()` overload"]
38    #[method(name = "get_Capacity", args = 0)]
39    pub fn get_capacity(self) -> i32;
40
41    #[doc = "`set_Capacity(i32)` overload"]
42    #[method(name = "set_Capacity", args = 1)]
43    pub fn set_capacity(self, value: i32) -> ();
44
45    #[doc = "`Count()` overload"]
46    #[method(name = "Count", args = 0)]
47    pub fn count(self) -> i32;
48
49    #[doc = "`get_StructureSize()` overload"]
50    #[method(name = "get_StructureSize", args = 0, abstract_dispatch)]
51    pub fn get_structure_size(self) -> i32;
52
53    #[doc = "`DefaultConstructAtIntPtr(::unity::IntPtr)` overload"]
54    #[method(name = "DefaultConstructAtIntPtr", args = 1)]
55    pub fn default_construct_at_int_ptr(self, address: ::unity::IntPtr) -> ();
56
57    #[doc = "`ReleaseAllocatedMemoryFromReferenceAtIntPtr(::unity::IntPtr)` overload"]
58    #[method(name = "ReleaseAllocatedMemoryFromReferenceAtIntPtr", args = 1)]
59    pub fn release_allocated_memory_from_reference_at_int_ptr(self, address: ::unity::IntPtr) -> ();
60
61    #[doc = "`CreateNewReferenceFromIntPtr(::unity::IntPtr)` overload"]
62    #[method(name = "CreateNewReferenceFromIntPtr", args = 1, abstract_dispatch)]
63    pub fn create_new_reference_from_int_ptr(self, address: ::unity::IntPtr) -> T0;
64
65    #[doc = "`CloneIntoReferenceFromIntPtr(::unity::IntPtr, T0)` overload"]
66    #[method(name = "CloneIntoReferenceFromIntPtr", args = 2, abstract_dispatch)]
67    pub fn clone_into_reference_from_int_ptr(self, address: ::unity::IntPtr, other: T0) -> ();
68
69    #[doc = "`get_Item(i32)` overload"]
70    #[method(name = "get_Item", args = 1)]
71    pub fn get_item(self, index: i32) -> T0;
72
73    #[doc = "`set_Item(i32, T0)` overload"]
74    #[method(name = "set_Item", args = 2)]
75    pub fn set_item(self, index: i32, value: T0) -> ();
76
77    #[doc = "`GetBuffer()` overload"]
78    #[method(name = "GetBuffer", args = 0)]
79    pub fn get_buffer(self) -> ::unity::IntPtr;
80
81    #[doc = "`GetObjectPtr(i32)` overload"]
82    #[method(name = "GetObjectPtr", args = 1)]
83    pub fn get_object_ptr(self, index: i32) -> ::unity::IntPtr;
84}
85
86#[cfg(feature = "root-akbasearray_1")]
87impl<T0: ::unity::ClassIdentity> AkBaseArray_1<T0> {
88    #[doc = "`.ctor(i32)` — overload selector"]
89    pub fn new(capacity: i32) -> Self {
90        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
91            panic!(
92                "{}
93::{}
94 failed to instantiate",
95                ::core::stringify!(AkBaseArray_1),
96                ::core::stringify!(new),
97            )
98        });
99        <Self as IAkBaseArray_1Methods<T0>>::ctor(this, capacity);
100        this
101    }
102}
103
104#[cfg(feature = "root-akbasearray_1")]
105#[doc(hidden)]
106pub mod prelude {
107    pub use super::{AkBaseArray_1, IAkBaseArray_1, IAkBaseArray_1Methods};
108    pub use crate::system::object::IObject;
109    #[cfg(feature = "system-object")]
110    pub use crate::system::object::IObjectMethods;
111}