302 lines
13 KiB
C#
302 lines
13 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Collections
|
|
{
|
|
/// <summary>Manages a compact array of bit values, which are represented as Booleans, where <see langword="true" /> indicates that the bit is on (1) and <see langword="false" /> indicates the bit is off (0).</summary>
|
|
// Token: 0x020005A4 RID: 1444
|
|
[Token(Token = "0x20005A4")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class BitArray : ICollection, IEnumerable, ICloneable
|
|
{
|
|
// Token: 0x06002BAA RID: 11178 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BAA")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
private BitArray()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.BitArray" /> class that can hold the specified number of bit values, which are initially set to <see langword="false" />.</summary>
|
|
/// <param name="length">The number of bit values in the new <see cref="T:System.Collections.BitArray" />.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="length" /> is less than zero.</exception>
|
|
// Token: 0x06002BAB RID: 11179 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BAB")]
|
|
[Address(RVA = "0x2530460", Offset = "0x252F260", VA = "0x182530460")]
|
|
public BitArray(int length)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.BitArray" /> class that can hold the specified number of bit values, which are initially set to the specified value.</summary>
|
|
/// <param name="length">The number of bit values in the new <see cref="T:System.Collections.BitArray" />.</param>
|
|
/// <param name="defaultValue">The Boolean value to assign to each bit.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="length" /> is less than zero.</exception>
|
|
// Token: 0x06002BAC RID: 11180 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BAC")]
|
|
[Address(RVA = "0x2530330", Offset = "0x252F130", VA = "0x182530330")]
|
|
public BitArray(int length, bool defaultValue)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.BitArray" /> class that contains bit values copied from the specified array of 32-bit integers.</summary>
|
|
/// <param name="values">An array of integers containing the values to copy, where each integer represents 32 consecutive bits.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="values" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The length of <paramref name="values" /> is greater than <see cref="F:System.Int32.MaxValue" /></exception>
|
|
// Token: 0x06002BAD RID: 11181 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BAD")]
|
|
[Address(RVA = "0x25301E0", Offset = "0x252EFE0", VA = "0x1825301E0")]
|
|
public BitArray(int[] values)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the value of the bit at a specific position in the <see cref="T:System.Collections.BitArray" />.</summary>
|
|
/// <param name="index">The zero-based index of the value to get or set.</param>
|
|
/// <returns>The value of the bit at position <paramref name="index" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="index" /> is less than zero.
|
|
/// -or-
|
|
/// <paramref name="index" /> is equal to or greater than <see cref="P:System.Collections.BitArray.Count" />.</exception>
|
|
// Token: 0x1700066F RID: 1647
|
|
[Token(Token = "0x1700066F")]
|
|
public int this[int index]
|
|
{
|
|
[Token(Token = "0x6002BAE")]
|
|
[Address(RVA = "0x25300A0", Offset = "0x252EEA0", VA = "0x1825300A0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the value of the bit at a specific position in the <see cref="T:System.Collections.BitArray" />.</summary>
|
|
/// <param name="index">The zero-based index of the value to get.</param>
|
|
/// <returns>The value of the bit at position <paramref name="index" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="index" /> is less than zero.
|
|
/// -or-
|
|
/// <paramref name="index" /> is greater than or equal to the number of elements in the <see cref="T:System.Collections.BitArray" />.</exception>
|
|
// Token: 0x06002BAF RID: 11183 RVA: 0x00017130 File Offset: 0x00015330
|
|
[Token(Token = "0x6002BAF")]
|
|
[Address(RVA = "0x252FFC0", Offset = "0x252EDC0", VA = "0x18252FFC0")]
|
|
public bool Get(int index)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Sets the bit at a specific position in the <see cref="T:System.Collections.BitArray" /> to the specified value.</summary>
|
|
/// <param name="index">The zero-based index of the bit to set.</param>
|
|
/// <param name="value">The Boolean value to assign to the bit.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="index" /> is less than zero.
|
|
/// -or-
|
|
/// <paramref name="index" /> is greater than or equal to the number of elements in the <see cref="T:System.Collections.BitArray" />.</exception>
|
|
// Token: 0x06002BB0 RID: 11184 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BB0")]
|
|
[Address(RVA = "0x25300A0", Offset = "0x252EEA0", VA = "0x1825300A0")]
|
|
public void Set(int index, bool value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the number of elements in the <see cref="T:System.Collections.BitArray" />.</summary>
|
|
/// <returns>The number of elements in the <see cref="T:System.Collections.BitArray" />.</returns>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The property is set to a value that is less than zero.</exception>
|
|
// Token: 0x17000670 RID: 1648
|
|
// (get) Token: 0x06002BB1 RID: 11185 RVA: 0x00017148 File Offset: 0x00015348
|
|
[Token(Token = "0x17000670")]
|
|
public int Length
|
|
{
|
|
[Token(Token = "0x6002BB1")]
|
|
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Copies the entire <see cref="T:System.Collections.BitArray" /> to a compatible one-dimensional <see cref="T:System.Array" />, starting at the specified index of the target array.</summary>
|
|
/// <param name="array">The one-dimensional <see cref="T:System.Array" /> that is the destination of the elements copied from <see cref="T:System.Collections.BitArray" />. The <see cref="T:System.Array" /> must have zero-based indexing.</param>
|
|
/// <param name="index">The zero-based index in <paramref name="array" /> at which copying begins.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="array" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="index" /> is less than zero.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="array" /> is multidimensional.
|
|
/// -or-
|
|
/// The number of elements in the source <see cref="T:System.Collections.BitArray" /> is greater than the available space from <paramref name="index" /> to the end of the destination <paramref name="array" />.</exception>
|
|
/// <exception cref="T:System.InvalidCastException">The type of the source <see cref="T:System.Collections.BitArray" /> cannot be cast automatically to the type of the destination <paramref name="array" />.</exception>
|
|
// Token: 0x06002BB2 RID: 11186 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BB2")]
|
|
[Address(RVA = "0x252FB20", Offset = "0x252E920", VA = "0x18252FB20", Slot = "4")]
|
|
public void CopyTo(Array array, int index)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.BitArray" />.</summary>
|
|
/// <returns>The number of elements contained in the <see cref="T:System.Collections.BitArray" />.</returns>
|
|
// Token: 0x17000671 RID: 1649
|
|
// (get) Token: 0x06002BB3 RID: 11187 RVA: 0x00017160 File Offset: 0x00015360
|
|
[Token(Token = "0x17000671")]
|
|
public int Count
|
|
{
|
|
[Token(Token = "0x6002BB3")]
|
|
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720", Slot = "5")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates a shallow copy of the <see cref="T:System.Collections.BitArray" />.</summary>
|
|
/// <returns>A shallow copy of the <see cref="T:System.Collections.BitArray" />.</returns>
|
|
// Token: 0x06002BB4 RID: 11188 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002BB4")]
|
|
[Address(RVA = "0x252F980", Offset = "0x252E780", VA = "0x18252F980", Slot = "9")]
|
|
public object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.BitArray" />.</summary>
|
|
/// <returns>An object that can be used to synchronize access to the <see cref="T:System.Collections.BitArray" />.</returns>
|
|
// Token: 0x17000672 RID: 1650
|
|
// (get) Token: 0x06002BB5 RID: 11189 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000672")]
|
|
public object SyncRoot
|
|
{
|
|
[Token(Token = "0x6002BB5")]
|
|
[Address(RVA = "0x2530580", Offset = "0x252F380", VA = "0x182530580", Slot = "6")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether access to the <see cref="T:System.Collections.BitArray" /> is synchronized (thread safe).</summary>
|
|
/// <returns>This property is always <see langword="false" />.</returns>
|
|
// Token: 0x17000673 RID: 1651
|
|
// (get) Token: 0x06002BB6 RID: 11190 RVA: 0x00017178 File Offset: 0x00015378
|
|
[Token(Token = "0x17000673")]
|
|
public bool IsSynchronized
|
|
{
|
|
[Token(Token = "0x6002BB6")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "7")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns an enumerator that iterates through the <see cref="T:System.Collections.BitArray" />.</summary>
|
|
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> for the entire <see cref="T:System.Collections.BitArray" />.</returns>
|
|
// Token: 0x06002BB7 RID: 11191 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002BB7")]
|
|
[Address(RVA = "0x252FF50", Offset = "0x252ED50", VA = "0x18252FF50", Slot = "8")]
|
|
public IEnumerator GetEnumerator()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002BB8 RID: 11192 RVA: 0x00017190 File Offset: 0x00015390
|
|
[Token(Token = "0x6002BB8")]
|
|
[Address(RVA = "0x252FF30", Offset = "0x252ED30", VA = "0x18252FF30")]
|
|
private static int GetArrayLength(int n, int div)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x0400196C RID: 6508
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400196C")]
|
|
private int[] m_array;
|
|
|
|
// Token: 0x0400196D RID: 6509
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400196D")]
|
|
private int m_length;
|
|
|
|
// Token: 0x0400196E RID: 6510
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x400196E")]
|
|
private int _version;
|
|
|
|
// Token: 0x0400196F RID: 6511
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400196F")]
|
|
[NonSerialized]
|
|
private object _syncRoot;
|
|
|
|
// Token: 0x020005A5 RID: 1445
|
|
[Token(Token = "0x20005A5")]
|
|
[Serializable]
|
|
private class BitArrayEnumeratorSimple : IEnumerator, ICloneable
|
|
{
|
|
// Token: 0x06002BB9 RID: 11193 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BB9")]
|
|
[Address(RVA = "0x252F850", Offset = "0x252E650", VA = "0x18252F850")]
|
|
internal BitArrayEnumeratorSimple(BitArray bitarray)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002BBA RID: 11194 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002BBA")]
|
|
[Address(RVA = "0x6A0DF0", Offset = "0x69FBF0", VA = "0x1806A0DF0", Slot = "7")]
|
|
public object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002BBB RID: 11195 RVA: 0x000171A8 File Offset: 0x000153A8
|
|
[Token(Token = "0x6002BBB")]
|
|
[Address(RVA = "0x252F620", Offset = "0x252E420", VA = "0x18252F620", Slot = "8")]
|
|
public virtual bool MoveNext()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x17000674 RID: 1652
|
|
// (get) Token: 0x06002BBC RID: 11196 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000674")]
|
|
public virtual object Current
|
|
{
|
|
[Token(Token = "0x6002BBC")]
|
|
[Address(RVA = "0x252F890", Offset = "0x252E690", VA = "0x18252F890", Slot = "9")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002BBD RID: 11197 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002BBD")]
|
|
[Address(RVA = "0x252F7C0", Offset = "0x252E5C0", VA = "0x18252F7C0", Slot = "6")]
|
|
public void Reset()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001970 RID: 6512
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001970")]
|
|
private BitArray bitarray;
|
|
|
|
// Token: 0x04001971 RID: 6513
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001971")]
|
|
private int index;
|
|
|
|
// Token: 0x04001972 RID: 6514
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4001972")]
|
|
private int version;
|
|
|
|
// Token: 0x04001973 RID: 6515
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001973")]
|
|
private bool currentElement;
|
|
}
|
|
}
|
|
}
|