314 lines
13 KiB
C#
314 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: 0x020005C3 RID: 1475
|
|
[Token(Token = "0x20005C3")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class BitArray : ICollection, IEnumerable, ICloneable
|
|
{
|
|
// Token: 0x06002DBE RID: 11710 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DBE")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
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: 0x06002DBF RID: 11711 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DBF")]
|
|
[Address(RVA = "0x2C2DCA0", Offset = "0x2C2CCA0", VA = "0x182C2DCA0")]
|
|
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: 0x06002DC0 RID: 11712 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DC0")]
|
|
[Address(RVA = "0x2C2DB70", Offset = "0x2C2CB70", VA = "0x182C2DB70")]
|
|
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: 0x06002DC1 RID: 11713 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DC1")]
|
|
[Address(RVA = "0x2C2DA20", Offset = "0x2C2CA20", VA = "0x182C2DA20")]
|
|
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: 0x170006E7 RID: 1767
|
|
[Token(Token = "0x170006E7")]
|
|
public bool this[int index]
|
|
{
|
|
[Token(Token = "0x6002DC2")]
|
|
[Address(RVA = "0x2C2DDC0", Offset = "0x2C2CDC0", VA = "0x182C2DDC0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
[Token(Token = "0x6002DC3")]
|
|
[Address(RVA = "0x2C2D8E0", Offset = "0x2C2C8E0", VA = "0x182C2D8E0")]
|
|
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: 0x06002DC4 RID: 11716 RVA: 0x00019530 File Offset: 0x00017730
|
|
[Token(Token = "0x6002DC4")]
|
|
[Address(RVA = "0x2C2D800", Offset = "0x2C2C800", VA = "0x182C2D800")]
|
|
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: 0x06002DC5 RID: 11717 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DC5")]
|
|
[Address(RVA = "0x2C2D8E0", Offset = "0x2C2C8E0", VA = "0x182C2D8E0")]
|
|
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: 0x170006E8 RID: 1768
|
|
// (get) Token: 0x06002DC6 RID: 11718 RVA: 0x00019548 File Offset: 0x00017748
|
|
// (set) Token: 0x06002DC7 RID: 11719 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170006E8")]
|
|
public int Length
|
|
{
|
|
[Token(Token = "0x6002DC6")]
|
|
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x6002DC7")]
|
|
[Address(RVA = "0x2C2DE40", Offset = "0x2C2CE40", VA = "0x182C2DE40")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <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: 0x06002DC8 RID: 11720 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DC8")]
|
|
[Address(RVA = "0x2C2D360", Offset = "0x2C2C360", VA = "0x182C2D360", 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: 0x170006E9 RID: 1769
|
|
// (get) Token: 0x06002DC9 RID: 11721 RVA: 0x00019560 File Offset: 0x00017760
|
|
[Token(Token = "0x170006E9")]
|
|
public int Count
|
|
{
|
|
[Token(Token = "0x6002DC9")]
|
|
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540", 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: 0x06002DCA RID: 11722 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002DCA")]
|
|
[Address(RVA = "0x2C2D1C0", Offset = "0x2C2C1C0", VA = "0x182C2D1C0", 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: 0x170006EA RID: 1770
|
|
// (get) Token: 0x06002DCB RID: 11723 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170006EA")]
|
|
public object SyncRoot
|
|
{
|
|
[Token(Token = "0x6002DCB")]
|
|
[Address(RVA = "0x2C2DDD0", Offset = "0x2C2CDD0", VA = "0x182C2DDD0", 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: 0x170006EB RID: 1771
|
|
// (get) Token: 0x06002DCC RID: 11724 RVA: 0x00019578 File Offset: 0x00017778
|
|
[Token(Token = "0x170006EB")]
|
|
public bool IsSynchronized
|
|
{
|
|
[Token(Token = "0x6002DCC")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", 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: 0x06002DCD RID: 11725 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002DCD")]
|
|
[Address(RVA = "0x2C2D790", Offset = "0x2C2C790", VA = "0x182C2D790", Slot = "8")]
|
|
public IEnumerator GetEnumerator()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002DCE RID: 11726 RVA: 0x00019590 File Offset: 0x00017790
|
|
[Token(Token = "0x6002DCE")]
|
|
[Address(RVA = "0x2C2D770", Offset = "0x2C2C770", VA = "0x182C2D770")]
|
|
private static int GetArrayLength(int n, int div)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04001A2F RID: 6703
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001A2F")]
|
|
private int[] m_array;
|
|
|
|
// Token: 0x04001A30 RID: 6704
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001A30")]
|
|
private int m_length;
|
|
|
|
// Token: 0x04001A31 RID: 6705
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4001A31")]
|
|
private int _version;
|
|
|
|
// Token: 0x04001A32 RID: 6706
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001A32")]
|
|
[NonSerialized]
|
|
private object _syncRoot;
|
|
|
|
// Token: 0x020005C4 RID: 1476
|
|
[Token(Token = "0x20005C4")]
|
|
[Serializable]
|
|
private class BitArrayEnumeratorSimple : IEnumerator, ICloneable
|
|
{
|
|
// Token: 0x06002DCF RID: 11727 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DCF")]
|
|
[Address(RVA = "0x2C2D090", Offset = "0x2C2C090", VA = "0x182C2D090")]
|
|
internal BitArrayEnumeratorSimple(BitArray bitarray)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002DD0 RID: 11728 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002DD0")]
|
|
[Address(RVA = "0x64CFC0", Offset = "0x64BFC0", VA = "0x18064CFC0", Slot = "7")]
|
|
public object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002DD1 RID: 11729 RVA: 0x000195A8 File Offset: 0x000177A8
|
|
[Token(Token = "0x6002DD1")]
|
|
[Address(RVA = "0x2C2CF30", Offset = "0x2C2BF30", VA = "0x182C2CF30", Slot = "8")]
|
|
public virtual bool MoveNext()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x170006EC RID: 1772
|
|
// (get) Token: 0x06002DD2 RID: 11730 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170006EC")]
|
|
public virtual object Current
|
|
{
|
|
[Token(Token = "0x6002DD2")]
|
|
[Address(RVA = "0x2C2D0D0", Offset = "0x2C2C0D0", VA = "0x182C2D0D0", Slot = "9")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002DD3 RID: 11731 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002DD3")]
|
|
[Address(RVA = "0x2C2D000", Offset = "0x2C2C000", VA = "0x182C2D000", Slot = "6")]
|
|
public void Reset()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001A33 RID: 6707
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001A33")]
|
|
private BitArray bitarray;
|
|
|
|
// Token: 0x04001A34 RID: 6708
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001A34")]
|
|
private int index;
|
|
|
|
// Token: 0x04001A35 RID: 6709
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4001A35")]
|
|
private int version;
|
|
|
|
// Token: 0x04001A36 RID: 6710
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001A36")]
|
|
private bool currentElement;
|
|
}
|
|
}
|
|
}
|