1#[cfg(feature = "system-collections-queue-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/system/collections/queue/Queue_QueueEnumerator.md"))]
11 #[::unity::class(namespace = "System.Collections", name = "Queue.QueueEnumerator")]
12 #[parent(crate::system::object::Object)]
13 pub struct Queue_QueueEnumerator {
14 #[offset(16)]
15 #[rename(name = "_q")]
16 pub q: crate::system::collections::queue::Queue,
17 #[offset(24)]
18 #[rename(name = "_index")]
19 pub index: i32,
20 #[offset(28)]
21 #[rename(name = "_version")]
22 pub version: i32,
23 #[offset(32)]
24 #[rename(name = "currentElement")]
25 pub current_element: ::unity::IlInstance,
26 }
27
28 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/queue/Queue.md"))]
29 #[::unity::class(namespace = "System.Collections", name = "Queue")]
30 #[parent(crate::system::object::Object)]
31 pub struct Queue {
32 #[offset(16)]
33 #[rename(name = "_array")]
34 pub array: ::unity::Array<crate::system::object::Object>,
35 #[offset(24)]
36 #[rename(name = "_head")]
37 pub head: i32,
38 #[offset(28)]
39 #[rename(name = "_tail")]
40 pub tail: i32,
41 #[offset(32)]
42 #[rename(name = "_size")]
43 pub size: i32,
44 #[offset(36)]
45 #[rename(name = "_growFactor")]
46 pub grow_factor: i32,
47 #[offset(40)]
48 #[rename(name = "_version")]
49 pub version: i32,
50 #[offset(48)]
51 #[rename(name = "_syncRoot")]
52 pub sync_root: ::unity::IlInstance,
53 }
54
55 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/queue/Queue_QueueDebugView.md"))]
56 #[::unity::class(namespace = "System.Collections", name = "Queue.QueueDebugView")]
57 #[parent(crate::system::object::Object)]
58 pub struct Queue_QueueDebugView {}
59}
60
61#[cfg(feature = "system-collections-queue-types")]
62pub use __types::*;
63
64#[cfg(feature = "system-collections-queue")]
65pub trait IQueue_QueueEnumeratorMethods: IQueue_QueueEnumerator {
66 #[doc = "`.ctor(crate::system::collections::queue::Queue)` overload"]
67 fn ctor(self, q: impl ::core::convert::Into<crate::system::collections::queue::Queue>) -> () {
68 unsafe {
69 let __receiver = <Queue_QueueEnumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x34dd9f0usize)as*mut u8,();
71(Queue_QueueEnumerator)__receiver,(crate::system::collections::queue::Queue)::core::convert::Into::into(q))
72 }
73 }
74 #[doc = "`Clone()` overload"]
75 fn clone(self) -> crate::system::object::Object {
76 unsafe {
77 let __receiver = <Queue_QueueEnumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 {
79 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
81 panic!(
82 "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87 7usize,
88 __vt.len(),
89 <Queue_QueueEnumerator as ::unity::ClassIdentity>::NAME,
90 "Clone",
91 )
92 });
93 let __inner: extern "C" fn(Queue_QueueEnumerator, ::unity::OptionalMethod) -> crate::system::object::Object =
94 ::core::mem::transmute(__vi.method_ptr);
95 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96 __inner(__receiver, __mi)
97 }
98 }
99 }
100 #[doc = "`MoveNext()` overload"]
101 fn move_next(self) -> bool {
102 unsafe {
103 let __receiver = <Queue_QueueEnumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 {
105 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
106 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
107 panic!(
108 "unity: virtual slot {}
109 out of range (vtable len {}
110) on the runtime class behind {}
111 (method `{}
112`)",
113 8usize,
114 __vt.len(),
115 <Queue_QueueEnumerator as ::unity::ClassIdentity>::NAME,
116 "MoveNext",
117 )
118 });
119 let __inner: extern "C" fn(Queue_QueueEnumerator, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
120 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
121 __inner(__receiver, __mi)
122 }
123 }
124 }
125 #[doc = "`get_Current()` overload"]
126 fn get_current(self) -> crate::system::object::Object {
127 unsafe {
128 let __receiver = <Queue_QueueEnumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 {
130 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
131 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
132 panic!(
133 "unity: virtual slot {}
134 out of range (vtable len {}
135) on the runtime class behind {}
136 (method `{}
137`)",
138 9usize,
139 __vt.len(),
140 <Queue_QueueEnumerator as ::unity::ClassIdentity>::NAME,
141 "get_Current",
142 )
143 });
144 let __inner: extern "C" fn(Queue_QueueEnumerator, ::unity::OptionalMethod) -> crate::system::object::Object =
145 ::core::mem::transmute(__vi.method_ptr);
146 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
147 __inner(__receiver, __mi)
148 }
149 }
150 }
151 #[doc = "`Reset()` overload"]
152 fn reset(self) -> () {
153 unsafe {
154 let __receiver = <Queue_QueueEnumerator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 {
156 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
157 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
158 panic!(
159 "unity: virtual slot {}
160 out of range (vtable len {}
161) on the runtime class behind {}
162 (method `{}
163`)",
164 10usize,
165 __vt.len(),
166 <Queue_QueueEnumerator as ::unity::ClassIdentity>::NAME,
167 "Reset",
168 )
169 });
170 let __inner: extern "C" fn(Queue_QueueEnumerator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
171 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
172 __inner(__receiver, __mi)
173 }
174 }
175 }
176}
177
178#[cfg(feature = "system-collections-queue")]
179impl<__T: IQueue_QueueEnumerator> IQueue_QueueEnumeratorMethods for __T {}
180
181#[cfg(feature = "system-collections-queue")]
182impl Queue_QueueEnumerator {
183 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
185 }
186
187 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
189 }
190
191 pub fn move_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
193 }
194
195 pub fn get_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
197 }
198
199 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
201 }
202}
203
204#[cfg(feature = "system-collections-queue")]
205impl Queue_QueueEnumerator {
206 #[doc = "Direct (non-virtual) call to `Queue_QueueEnumerator`'s own `Clone`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
207 pub unsafe fn clone(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
208 let __mi = Self::clone_method_info();
209 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
210 ::core::mem::transmute(__mi.method_ptr);
211 __inner(this.into(), ::core::option::Option::None)
212 }
213
214 #[doc = "Direct (non-virtual) call to `Queue_QueueEnumerator`'s own `MoveNext`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215 pub unsafe fn move_next(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
216 let __mi = Self::move_next_method_info();
217 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
218 __inner(this.into(), ::core::option::Option::None)
219 }
220
221 #[doc = "Direct (non-virtual) call to `Queue_QueueEnumerator`'s own `get_Current`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
222 pub unsafe fn get_current(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
223 let __mi = Self::get_current_method_info();
224 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
225 ::core::mem::transmute(__mi.method_ptr);
226 __inner(this.into(), ::core::option::Option::None)
227 }
228
229 #[doc = "Direct (non-virtual) call to `Queue_QueueEnumerator`'s own `Reset`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230 pub unsafe fn reset(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
231 let __mi = Self::reset_method_info();
232 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
233 __inner(this.into(), ::core::option::Option::None)
234 }
235}
236
237#[cfg(feature = "system-collections-queue")]
238impl Queue_QueueEnumerator {
239 #[doc = "`.ctor(crate::system::collections::queue::Queue)` — overload selector"]
240 pub fn new(q: crate::system::collections::queue::Queue) -> Self {
241 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
242 panic!(
243 "{}
244::{}
245 failed to instantiate",
246 ::core::stringify!(Queue_QueueEnumerator),
247 ::core::stringify!(new),
248 )
249 });
250 <Self as IQueue_QueueEnumeratorMethods>::ctor(this, q);
251 this
252 }
253}
254
255#[cfg(feature = "system-collections-queue")]
256pub trait IQueueMethods: IQueue {
257 #[doc = "`.ctor()` overload"]
258 fn ctor(self) -> () {
259 unsafe {
260 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x3ad9ea0usize)as*mut u8,();
262(Queue)__receiver)
263 }
264 }
265 #[doc = "`.ctor(i32)` overload"]
266 fn ctor_2(self, capacity: impl ::core::convert::Into<i32>) -> () {
267 unsafe {
268 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x3ada130usize)as*mut u8,();
270(Queue)__receiver,(i32)::core::convert::Into::into(capacity))
271 }
272 }
273 #[doc = "`.ctor(i32, f32)` overload"]
274 fn ctor_3(self, capacity: impl ::core::convert::Into<i32>, grow_factor: impl ::core::convert::Into<f32>) -> () {
275 unsafe {
276 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277 ::unity::il2cpp_call!((::unity::module_base()+0x3ad9f20usize)as*mut u8,();
278(Queue)__receiver,(i32)::core::convert::Into::into(capacity),(f32)::core::convert::Into::into(grow_factor))
279 }
280 }
281 #[doc = "`.ctor(crate::system::collections::icollection::ICollection)` overload"]
282 fn ctor_4(self, col: impl ::core::convert::Into<crate::system::collections::icollection::ICollection>) -> () {
283 unsafe {
284 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x3ada140usize)as*mut u8,();
286(Queue)__receiver,(crate::system::collections::icollection::ICollection)::core::convert::Into::into(col))
287 }
288 }
289 #[doc = "`get_Count()` overload"]
290 fn get_count(self) -> i32 {
291 unsafe {
292 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 {
294 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
295 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
296 panic!(
297 "unity: virtual slot {}
298 out of range (vtable len {}
299) on the runtime class behind {}
300 (method `{}
301`)",
302 10usize,
303 __vt.len(),
304 <Queue as ::unity::ClassIdentity>::NAME,
305 "get_Count",
306 )
307 });
308 let __inner: extern "C" fn(Queue, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
309 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
310 __inner(__receiver, __mi)
311 }
312 }
313 }
314 #[doc = "`Clone()` overload"]
315 fn clone(self) -> crate::system::object::Object {
316 unsafe {
317 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
318 {
319 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
320 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
321 panic!(
322 "unity: virtual slot {}
323 out of range (vtable len {}
324) on the runtime class behind {}
325 (method `{}
326`)",
327 11usize,
328 __vt.len(),
329 <Queue as ::unity::ClassIdentity>::NAME,
330 "Clone",
331 )
332 });
333 let __inner: extern "C" fn(Queue, ::unity::OptionalMethod) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
334 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
335 __inner(__receiver, __mi)
336 }
337 }
338 }
339 #[doc = "`get_IsSynchronized()` overload"]
340 fn get_is_synchronized(self) -> bool {
341 unsafe {
342 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
343 {
344 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
345 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
346 panic!(
347 "unity: virtual slot {}
348 out of range (vtable len {}
349) on the runtime class behind {}
350 (method `{}
351`)",
352 12usize,
353 __vt.len(),
354 <Queue as ::unity::ClassIdentity>::NAME,
355 "get_IsSynchronized",
356 )
357 });
358 let __inner: extern "C" fn(Queue, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
359 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
360 __inner(__receiver, __mi)
361 }
362 }
363 }
364 #[doc = "`get_SyncRoot()` overload"]
365 fn get_sync_root(self) -> crate::system::object::Object {
366 unsafe {
367 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 {
369 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
370 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
371 panic!(
372 "unity: virtual slot {}
373 out of range (vtable len {}
374) on the runtime class behind {}
375 (method `{}
376`)",
377 13usize,
378 __vt.len(),
379 <Queue as ::unity::ClassIdentity>::NAME,
380 "get_SyncRoot",
381 )
382 });
383 let __inner: extern "C" fn(Queue, ::unity::OptionalMethod) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
384 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
385 __inner(__receiver, __mi)
386 }
387 }
388 }
389 #[doc = "`CopyTo(::unity::IlInstance, i32)` overload"]
390 fn copy_to(self, array: impl ::core::convert::Into<::unity::IlInstance>, index: impl ::core::convert::Into<i32>) -> () {
391 unsafe {
392 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393 {
394 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
395 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
396 panic!(
397 "unity: virtual slot {}
398 out of range (vtable len {}
399) on the runtime class behind {}
400 (method `{}
401`)",
402 14usize,
403 __vt.len(),
404 <Queue as ::unity::ClassIdentity>::NAME,
405 "CopyTo",
406 )
407 });
408 let __inner: extern "C" fn(Queue, ::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
409 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
410 __inner(__receiver, ::core::convert::Into::into(array), ::core::convert::Into::into(index), __mi)
411 }
412 }
413 }
414 #[doc = "`Enqueue(crate::system::object::Object)` overload"]
415 fn enqueue(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> () {
416 unsafe {
417 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
418 {
419 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
420 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
421 panic!(
422 "unity: virtual slot {}
423 out of range (vtable len {}
424) on the runtime class behind {}
425 (method `{}
426`)",
427 15usize,
428 __vt.len(),
429 <Queue as ::unity::ClassIdentity>::NAME,
430 "Enqueue",
431 )
432 });
433 let __inner: extern "C" fn(Queue, crate::system::object::Object, ::unity::OptionalMethod) -> () =
434 ::core::mem::transmute(__vi.method_ptr);
435 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
436 __inner(__receiver, ::core::convert::Into::into(obj), __mi)
437 }
438 }
439 }
440 #[doc = "`GetEnumerator()` overload"]
441 fn get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator {
442 unsafe {
443 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
444 {
445 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
446 let __vi = *__vt.get(16usize).unwrap_or_else(|| {
447 panic!(
448 "unity: virtual slot {}
449 out of range (vtable len {}
450) on the runtime class behind {}
451 (method `{}
452`)",
453 16usize,
454 __vt.len(),
455 <Queue as ::unity::ClassIdentity>::NAME,
456 "GetEnumerator",
457 )
458 });
459 let __inner: extern "C" fn(Queue, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
460 ::core::mem::transmute(__vi.method_ptr);
461 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
462 __inner(__receiver, __mi)
463 }
464 }
465 }
466 #[doc = "`Dequeue()` overload"]
467 fn dequeue(self) -> crate::system::object::Object {
468 unsafe {
469 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
470 {
471 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
472 let __vi = *__vt.get(17usize).unwrap_or_else(|| {
473 panic!(
474 "unity: virtual slot {}
475 out of range (vtable len {}
476) on the runtime class behind {}
477 (method `{}
478`)",
479 17usize,
480 __vt.len(),
481 <Queue as ::unity::ClassIdentity>::NAME,
482 "Dequeue",
483 )
484 });
485 let __inner: extern "C" fn(Queue, ::unity::OptionalMethod) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
486 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
487 __inner(__receiver, __mi)
488 }
489 }
490 }
491 #[doc = "`Peek()` overload"]
492 fn peek(self) -> crate::system::object::Object {
493 unsafe {
494 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
495 {
496 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
497 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
498 panic!(
499 "unity: virtual slot {}
500 out of range (vtable len {}
501) on the runtime class behind {}
502 (method `{}
503`)",
504 18usize,
505 __vt.len(),
506 <Queue as ::unity::ClassIdentity>::NAME,
507 "Peek",
508 )
509 });
510 let __inner: extern "C" fn(Queue, ::unity::OptionalMethod) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
511 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
512 __inner(__receiver, __mi)
513 }
514 }
515 }
516 #[doc = "`GetElement(i32)` overload"]
517 fn get_element(self, i: impl ::core::convert::Into<i32>) -> crate::system::object::Object {
518 unsafe {
519 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
520 ::unity::il2cpp_call!((::unity::module_base()+0x3adab30usize)as*mut u8,crate::system::object::Object;
521(Queue)__receiver,(i32)::core::convert::Into::into(i))
522 }
523 }
524 #[doc = "`SetCapacity(i32)` overload"]
525 fn set_capacity(self, capacity: impl ::core::convert::Into<i32>) -> () {
526 unsafe {
527 let __receiver = <Queue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
528 ::unity::il2cpp_call!((::unity::module_base()+0x3ada830usize)as*mut u8,();
529(Queue)__receiver,(i32)::core::convert::Into::into(capacity))
530 }
531 }
532}
533
534#[cfg(feature = "system-collections-queue")]
535impl<__T: IQueue> IQueueMethods for __T {}
536
537#[cfg(feature = "system-collections-queue")]
538impl Queue {
539 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
541 }
542
543 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
545 }
546
547 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
548 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
549 }
550
551 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
553 }
554
555 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
557 }
558
559 pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
561 }
562
563 pub fn get_is_synchronized_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
565 }
566
567 pub fn get_sync_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
569 }
570
571 pub fn copy_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
573 }
574
575 pub fn enqueue_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
577 }
578
579 pub fn get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
581 }
582
583 pub fn dequeue_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
585 }
586
587 pub fn peek_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
589 }
590
591 pub fn get_element_method_info() -> &'static ::unity::il2cpp::MethodInfo {
592 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
593 }
594
595 pub fn set_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
596 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
597 }
598}
599
600#[cfg(feature = "system-collections-queue")]
601impl Queue {
602 #[doc = "Direct (non-virtual) call to `Queue`'s own `get_Count`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
603 pub unsafe fn get_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
604 let __mi = Self::get_count_method_info();
605 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
606 __inner(this.into(), ::core::option::Option::None)
607 }
608
609 #[doc = "Direct (non-virtual) call to `Queue`'s own `Clone`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
610 pub unsafe fn clone(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
611 let __mi = Self::clone_method_info();
612 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
613 ::core::mem::transmute(__mi.method_ptr);
614 __inner(this.into(), ::core::option::Option::None)
615 }
616
617 #[doc = "Direct (non-virtual) call to `Queue`'s own `get_IsSynchronized`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
618 pub unsafe fn get_is_synchronized(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
619 let __mi = Self::get_is_synchronized_method_info();
620 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
621 __inner(this.into(), ::core::option::Option::None)
622 }
623
624 #[doc = "Direct (non-virtual) call to `Queue`'s own `get_SyncRoot`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
625 pub unsafe fn get_sync_root(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
626 let __mi = Self::get_sync_root_method_info();
627 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
628 ::core::mem::transmute(__mi.method_ptr);
629 __inner(this.into(), ::core::option::Option::None)
630 }
631
632 #[doc = "Direct (non-virtual) call to `Queue`'s own `CopyTo`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
633 pub unsafe fn copy_to(this: impl ::core::convert::Into<::unity::IlInstance>, array: ::unity::IlInstance, index: i32) -> () {
634 let __mi = Self::copy_to_method_info();
635 let __inner: extern "C" fn(::unity::IlInstance, ::unity::IlInstance, i32, ::unity::OptionalMethod) -> () =
636 ::core::mem::transmute(__mi.method_ptr);
637 __inner(this.into(), array, index, ::core::option::Option::None)
638 }
639
640 #[doc = "Direct (non-virtual) call to `Queue`'s own `Enqueue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
641 pub unsafe fn enqueue(this: impl ::core::convert::Into<::unity::IlInstance>, obj: crate::system::object::Object) -> () {
642 let __mi = Self::enqueue_method_info();
643 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> () =
644 ::core::mem::transmute(__mi.method_ptr);
645 __inner(this.into(), obj, ::core::option::Option::None)
646 }
647
648 #[doc = "Direct (non-virtual) call to `Queue`'s own `GetEnumerator`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
649 pub unsafe fn get_enumerator(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::collections::ienumerator::IEnumerator {
650 let __mi = Self::get_enumerator_method_info();
651 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
652 ::core::mem::transmute(__mi.method_ptr);
653 __inner(this.into(), ::core::option::Option::None)
654 }
655
656 #[doc = "Direct (non-virtual) call to `Queue`'s own `Dequeue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
657 pub unsafe fn dequeue(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
658 let __mi = Self::dequeue_method_info();
659 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
660 ::core::mem::transmute(__mi.method_ptr);
661 __inner(this.into(), ::core::option::Option::None)
662 }
663
664 #[doc = "Direct (non-virtual) call to `Queue`'s own `Peek`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
665 pub unsafe fn peek(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
666 let __mi = Self::peek_method_info();
667 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
668 ::core::mem::transmute(__mi.method_ptr);
669 __inner(this.into(), ::core::option::Option::None)
670 }
671}
672
673#[cfg(feature = "system-collections-queue")]
674impl Queue {
675 #[doc = "`.ctor()` — no args"]
676 pub fn new() -> Self {
677 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
678 panic!(
679 "{}
680::{}
681 failed to instantiate",
682 ::core::stringify!(Queue),
683 ::core::stringify!(new),
684 )
685 });
686 <Self as IQueueMethods>::ctor(this);
687 this
688 }
689
690 #[doc = "`.ctor(i32)` — overload selector"]
691 pub fn new_2(capacity: i32) -> Self {
692 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
693 panic!(
694 "{}
695::{}
696 failed to instantiate",
697 ::core::stringify!(Queue),
698 ::core::stringify!(new_2),
699 )
700 });
701 <Self as IQueueMethods>::ctor_2(this, capacity);
702 this
703 }
704
705 #[doc = "`.ctor(i32, f32)` — overload selector"]
706 pub fn new_3(capacity: i32, grow_factor: f32) -> Self {
707 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
708 panic!(
709 "{}
710::{}
711 failed to instantiate",
712 ::core::stringify!(Queue),
713 ::core::stringify!(new_3),
714 )
715 });
716 <Self as IQueueMethods>::ctor_3(this, capacity, grow_factor);
717 this
718 }
719
720 #[doc = "`.ctor(crate::system::collections::icollection::ICollection)` — overload selector"]
721 pub fn new_4(col: crate::system::collections::icollection::ICollection) -> Self {
722 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
723 panic!(
724 "{}
725::{}
726 failed to instantiate",
727 ::core::stringify!(Queue),
728 ::core::stringify!(new_4),
729 )
730 });
731 <Self as IQueueMethods>::ctor_4(this, col);
732 this
733 }
734}
735
736#[cfg(feature = "system-collections-queue")]
737#[doc(hidden)]
738pub mod prelude {
739 pub use super::{
740 IQueue, IQueueMethods, IQueue_QueueDebugView, IQueue_QueueEnumerator, IQueue_QueueEnumeratorMethods, Queue, Queue_QueueDebugView,
741 Queue_QueueEnumerator,
742 };
743 pub use crate::system::object::IObject;
744 #[cfg(feature = "system-object")]
745 pub use crate::system::object::IObjectMethods;
746}