1#[cfg(feature = "root-akexternalsourceinfo-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/akexternalsourceinfo/AkExternalSourceInfo.md"))]
11 #[::unity::class(namespace = "", name = "AkExternalSourceInfo")]
12 #[parent(crate::system::object::Object)]
13 pub struct AkExternalSourceInfo {
14 #[offset(16)]
15 #[rename(name = "swigCPtr")]
16 pub swig_c_ptr: ::unity::IntPtr,
17 #[offset(24)]
18 #[rename(name = "swigCMemOwn")]
19 pub swig_c_mem_own: bool,
20 }
21}
22
23#[cfg(feature = "root-akexternalsourceinfo-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akexternalsourceinfo")]
27impl AkExternalSourceInfo {
28 #[doc = "`getCPtr(crate::root::akexternalsourceinfo::AkExternalSourceInfo)` overload"]
29 pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akexternalsourceinfo::AkExternalSourceInfo>) -> ::unity::IntPtr {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2f1ca00usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akexternalsourceinfo::AkExternalSourceInfo)::core::convert::Into::into(obj))
33 }
34 }
35
36 #[doc = "`GetSizeOf()` overload"]
37 pub fn get_size_of() -> i32 {
38 unsafe {
39 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d070usize)as*mut u8,i32;
40 )
41 }
42 }
43}
44
45#[cfg(feature = "root-akexternalsourceinfo")]
46pub trait IAkExternalSourceInfoMethods: IAkExternalSourceInfo {
47 #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
48 fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
49 unsafe {
50 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2f1c9c0usize)as*mut u8,();
52(AkExternalSourceInfo)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
53 }
54 }
55 #[doc = "`setCPtr(::unity::IntPtr)` overload"]
56 fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
57 unsafe {
58 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 {
60 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
62 panic!(
63 "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68 5usize,
69 __vt.len(),
70 <AkExternalSourceInfo as ::unity::ClassIdentity>::NAME,
71 "setCPtr",
72 )
73 });
74 let __inner: extern "C" fn(AkExternalSourceInfo, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
75 ::core::mem::transmute(__vi.method_ptr);
76 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
77 __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
78 }
79 }
80 }
81 #[doc = "`Finalize()` overload"]
82 fn finalize(self) -> () {
83 unsafe {
84 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 {
86 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
87 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
88 panic!(
89 "unity: virtual slot {}
90 out of range (vtable len {}
91) on the runtime class behind {}
92 (method `{}
93`)",
94 1usize,
95 __vt.len(),
96 <AkExternalSourceInfo as ::unity::ClassIdentity>::NAME,
97 "Finalize",
98 )
99 });
100 let __inner: extern "C" fn(AkExternalSourceInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
101 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102 __inner(__receiver, __mi)
103 }
104 }
105 }
106 #[doc = "`Dispose()` overload"]
107 fn dispose(self) -> () {
108 unsafe {
109 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110 {
111 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
112 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
113 panic!(
114 "unity: virtual slot {}
115 out of range (vtable len {}
116) on the runtime class behind {}
117 (method `{}
118`)",
119 6usize,
120 __vt.len(),
121 <AkExternalSourceInfo as ::unity::ClassIdentity>::NAME,
122 "Dispose",
123 )
124 });
125 let __inner: extern "C" fn(AkExternalSourceInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
126 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
127 __inner(__receiver, __mi)
128 }
129 }
130 }
131 #[doc = "`.ctor()` overload"]
132 fn ctor_2(self) -> () {
133 unsafe {
134 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2f1cc90usize)as*mut u8,();
136(AkExternalSourceInfo)__receiver)
137 }
138 }
139 #[doc = "`.ctor(::unity::IntPtr, u32, u32, u32)` overload"]
140 fn ctor_3(
141 self,
142 in_p_in_memory: impl ::core::convert::Into<::unity::IntPtr>,
143 in_ui_memory_size: impl ::core::convert::Into<u32>,
144 in_i_external_src_cookie: impl ::core::convert::Into<u32>,
145 in_id_codec: impl ::core::convert::Into<u32>,
146 ) -> () {
147 unsafe {
148 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x2f1cd20usize)as*mut u8,();
150(AkExternalSourceInfo)__receiver,(::unity::IntPtr)::core::convert::Into::into(in_p_in_memory),(u32)::core::convert::Into::into(in_ui_memory_size),(u32)::core::convert::Into::into(in_i_external_src_cookie),(u32)::core::convert::Into::into(in_id_codec))
151 }
152 }
153 #[doc = "`.ctor(::unity::Il2CppString, u32, u32)` overload"]
154 fn ctor_4(
155 self,
156 in_psz_file_name: impl ::core::convert::Into<::unity::Il2CppString>,
157 in_i_external_src_cookie: impl ::core::convert::Into<u32>,
158 in_id_codec: impl ::core::convert::Into<u32>,
159 ) -> () {
160 unsafe {
161 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x2f1cde0usize)as*mut u8,();
163(AkExternalSourceInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_psz_file_name),(u32)::core::convert::Into::into(in_i_external_src_cookie),(u32)::core::convert::Into::into(in_id_codec))
164 }
165 }
166 #[doc = "`.ctor(u32, u32, u32)` overload"]
167 fn ctor_5(
168 self,
169 in_id_file: impl ::core::convert::Into<u32>,
170 in_i_external_src_cookie: impl ::core::convert::Into<u32>,
171 in_id_codec: impl ::core::convert::Into<u32>,
172 ) -> () {
173 unsafe {
174 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x2f1ce90usize)as*mut u8,();
176(AkExternalSourceInfo)__receiver,(u32)::core::convert::Into::into(in_id_file),(u32)::core::convert::Into::into(in_i_external_src_cookie),(u32)::core::convert::Into::into(in_id_codec))
177 }
178 }
179 #[doc = "`Clear()` overload"]
180 fn clear(self) -> () {
181 unsafe {
182 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x2f1cf40usize)as*mut u8,();
184(AkExternalSourceInfo)__receiver)
185 }
186 }
187 #[doc = "`Clone(crate::root::akexternalsourceinfo::AkExternalSourceInfo)` overload"]
188 fn clone(self, other: impl ::core::convert::Into<crate::root::akexternalsourceinfo::AkExternalSourceInfo>) -> () {
189 unsafe {
190 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x2f1cfb0usize)as*mut u8,();
192(AkExternalSourceInfo)__receiver,(crate::root::akexternalsourceinfo::AkExternalSourceInfo)::core::convert::Into::into(other))
193 }
194 }
195 #[doc = "`set_iExternalSrcCookie(u32)` overload"]
196 fn set_i_external_src_cookie(self, value: impl ::core::convert::Into<u32>) -> () {
197 unsafe {
198 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d0e0usize)as*mut u8,();
200(AkExternalSourceInfo)__receiver,(u32)::core::convert::Into::into(value))
201 }
202 }
203 #[doc = "`get_iExternalSrcCookie()` overload"]
204 fn get_i_external_src_cookie(self) -> u32 {
205 unsafe {
206 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d160usize)as*mut u8,u32;
208(AkExternalSourceInfo)__receiver)
209 }
210 }
211 #[doc = "`set_idCodec(u32)` overload"]
212 fn set_id_codec(self, value: impl ::core::convert::Into<u32>) -> () {
213 unsafe {
214 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d1d0usize)as*mut u8,();
216(AkExternalSourceInfo)__receiver,(u32)::core::convert::Into::into(value))
217 }
218 }
219 #[doc = "`get_idCodec()` overload"]
220 fn get_id_codec(self) -> u32 {
221 unsafe {
222 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d250usize)as*mut u8,u32;
224(AkExternalSourceInfo)__receiver)
225 }
226 }
227 #[doc = "`set_szFile(::unity::Il2CppString)` overload"]
228 fn set_sz_file(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
229 unsafe {
230 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d2c0usize)as*mut u8,();
232(AkExternalSourceInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
233 }
234 }
235 #[doc = "`get_szFile()` overload"]
236 fn get_sz_file(self) -> ::unity::Il2CppString {
237 unsafe {
238 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d340usize)as*mut u8, ::unity::Il2CppString;
240(AkExternalSourceInfo)__receiver)
241 }
242 }
243 #[doc = "`set_pInMemory(::unity::IntPtr)` overload"]
244 fn set_p_in_memory(self, value: impl ::core::convert::Into<::unity::IntPtr>) -> () {
245 unsafe {
246 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d3f0usize)as*mut u8,();
248(AkExternalSourceInfo)__receiver,(::unity::IntPtr)::core::convert::Into::into(value))
249 }
250 }
251 #[doc = "`get_pInMemory()` overload"]
252 fn get_p_in_memory(self) -> ::unity::IntPtr {
253 unsafe {
254 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d470usize)as*mut u8, ::unity::IntPtr;
256(AkExternalSourceInfo)__receiver)
257 }
258 }
259 #[doc = "`set_uiMemorySize(u32)` overload"]
260 fn set_ui_memory_size(self, value: impl ::core::convert::Into<u32>) -> () {
261 unsafe {
262 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d4e0usize)as*mut u8,();
264(AkExternalSourceInfo)__receiver,(u32)::core::convert::Into::into(value))
265 }
266 }
267 #[doc = "`get_uiMemorySize()` overload"]
268 fn get_ui_memory_size(self) -> u32 {
269 unsafe {
270 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d560usize)as*mut u8,u32;
272(AkExternalSourceInfo)__receiver)
273 }
274 }
275 #[doc = "`set_idFile(u32)` overload"]
276 fn set_id_file(self, value: impl ::core::convert::Into<u32>) -> () {
277 unsafe {
278 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d5d0usize)as*mut u8,();
280(AkExternalSourceInfo)__receiver,(u32)::core::convert::Into::into(value))
281 }
282 }
283 #[doc = "`get_idFile()` overload"]
284 fn get_id_file(self) -> u32 {
285 unsafe {
286 let __receiver = <AkExternalSourceInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287 ::unity::il2cpp_call!((::unity::module_base()+0x2f1d650usize)as*mut u8,u32;
288(AkExternalSourceInfo)__receiver)
289 }
290 }
291}
292
293#[cfg(feature = "root-akexternalsourceinfo")]
294impl<__T: IAkExternalSourceInfo> IAkExternalSourceInfoMethods for __T {}
295
296#[cfg(feature = "root-akexternalsourceinfo")]
297impl AkExternalSourceInfo {
298 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
300 }
301
302 pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
304 }
305
306 pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
308 }
309
310 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
312 }
313
314 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
316 }
317
318 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
320 }
321
322 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
324 }
325
326 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
328 }
329
330 pub fn ctor_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
332 }
333
334 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
336 }
337
338 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
340 }
341
342 pub fn get_size_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
344 }
345
346 pub fn set_i_external_src_cookie_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
348 }
349
350 pub fn get_i_external_src_cookie_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
352 }
353
354 pub fn set_id_codec_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
356 }
357
358 pub fn get_id_codec_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
360 }
361
362 pub fn set_sz_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
364 }
365
366 pub fn get_sz_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
368 }
369
370 pub fn set_p_in_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
372 }
373
374 pub fn get_p_in_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
376 }
377
378 pub fn set_ui_memory_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
380 }
381
382 pub fn get_ui_memory_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
384 }
385
386 pub fn set_id_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
388 }
389
390 pub fn get_id_file_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
392 }
393}
394
395#[cfg(feature = "root-akexternalsourceinfo")]
396impl AkExternalSourceInfo {
397 #[doc = "Direct (non-virtual) call to `AkExternalSourceInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
398 pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
399 let __mi = Self::set_c_ptr_method_info();
400 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
401 __inner(this.into(), c_ptr, ::core::option::Option::None)
402 }
403
404 #[doc = "Direct (non-virtual) call to `AkExternalSourceInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
405 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
406 let __mi = Self::finalize_method_info();
407 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
408 __inner(this.into(), ::core::option::Option::None)
409 }
410
411 #[doc = "Direct (non-virtual) call to `AkExternalSourceInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
412 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
413 let __mi = Self::dispose_method_info();
414 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
415 __inner(this.into(), ::core::option::Option::None)
416 }
417}
418
419#[cfg(feature = "root-akexternalsourceinfo")]
420impl AkExternalSourceInfo {
421 #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
422 pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
423 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
424 panic!(
425 "{}
426::{}
427 failed to instantiate",
428 ::core::stringify!(AkExternalSourceInfo),
429 ::core::stringify!(new),
430 )
431 });
432 <Self as IAkExternalSourceInfoMethods>::ctor(this, c_ptr, c_memory_own);
433 this
434 }
435
436 #[doc = "`.ctor()` — no args"]
437 pub fn new_2() -> Self {
438 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
439 panic!(
440 "{}
441::{}
442 failed to instantiate",
443 ::core::stringify!(AkExternalSourceInfo),
444 ::core::stringify!(new_2),
445 )
446 });
447 <Self as IAkExternalSourceInfoMethods>::ctor_2(this);
448 this
449 }
450
451 #[doc = "`.ctor(::unity::IntPtr, u32, u32, u32)` — overload selector"]
452 pub fn new_3(in_p_in_memory: ::unity::IntPtr, in_ui_memory_size: u32, in_i_external_src_cookie: u32, in_id_codec: u32) -> Self {
453 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
454 panic!(
455 "{}
456::{}
457 failed to instantiate",
458 ::core::stringify!(AkExternalSourceInfo),
459 ::core::stringify!(new_3),
460 )
461 });
462 <Self as IAkExternalSourceInfoMethods>::ctor_3(this, in_p_in_memory, in_ui_memory_size, in_i_external_src_cookie, in_id_codec);
463 this
464 }
465
466 #[doc = "`.ctor(::unity::Il2CppString, u32, u32)` — overload selector"]
467 pub fn new_4(in_psz_file_name: ::unity::Il2CppString, in_i_external_src_cookie: u32, in_id_codec: u32) -> Self {
468 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
469 panic!(
470 "{}
471::{}
472 failed to instantiate",
473 ::core::stringify!(AkExternalSourceInfo),
474 ::core::stringify!(new_4),
475 )
476 });
477 <Self as IAkExternalSourceInfoMethods>::ctor_4(this, in_psz_file_name, in_i_external_src_cookie, in_id_codec);
478 this
479 }
480
481 #[doc = "`.ctor(u32, u32, u32)` — overload selector"]
482 pub fn new_5(in_id_file: u32, in_i_external_src_cookie: u32, in_id_codec: u32) -> Self {
483 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
484 panic!(
485 "{}
486::{}
487 failed to instantiate",
488 ::core::stringify!(AkExternalSourceInfo),
489 ::core::stringify!(new_5),
490 )
491 });
492 <Self as IAkExternalSourceInfoMethods>::ctor_5(this, in_id_file, in_i_external_src_cookie, in_id_codec);
493 this
494 }
495}
496
497#[cfg(feature = "root-akexternalsourceinfo")]
498#[doc(hidden)]
499pub mod prelude {
500 pub use super::{AkExternalSourceInfo, IAkExternalSourceInfo, IAkExternalSourceInfoMethods};
501 pub use crate::system::object::IObject;
502 #[cfg(feature = "system-object")]
503 pub use crate::system::object::IObjectMethods;
504}