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