330 lines
14 KiB
C#
330 lines
14 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Collections
|
|
{
|
|
/// <summary>Represents a first-in, first-out collection of objects.</summary>
|
|
// Token: 0x020005C5 RID: 1477
|
|
[Token(Token = "0x20005C5")]
|
|
[ComVisible(true)]
|
|
[DebuggerDisplay("Count = {Count}")]
|
|
[DebuggerTypeProxy(typeof(Queue.QueueDebugView))]
|
|
[Serializable]
|
|
public class Queue : ICollection, IEnumerable, ICloneable
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Queue" /> class that is empty, has the default initial capacity, and uses the default growth factor.</summary>
|
|
// Token: 0x06002CAE RID: 11438 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CAE")]
|
|
[Address(RVA = "0x25471F0", Offset = "0x2545FF0", VA = "0x1825471F0")]
|
|
public Queue()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Queue" /> class that is empty, has the specified initial capacity, and uses the default growth factor.</summary>
|
|
/// <param name="capacity">The initial number of elements that the <see cref="T:System.Collections.Queue" /> can contain.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="capacity" /> is less than zero.</exception>
|
|
// Token: 0x06002CAF RID: 11439 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CAF")]
|
|
[Address(RVA = "0x2546E30", Offset = "0x2545C30", VA = "0x182546E30")]
|
|
public Queue(int capacity)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Queue" /> class that is empty, has the specified initial capacity, and uses the specified growth factor.</summary>
|
|
/// <param name="capacity">The initial number of elements that the <see cref="T:System.Collections.Queue" /> can contain.</param>
|
|
/// <param name="growFactor">The factor by which the capacity of the <see cref="T:System.Collections.Queue" /> is expanded.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="capacity" /> is less than zero.
|
|
/// -or-
|
|
/// <paramref name="growFactor" /> is less than 1.0 or greater than 10.0.</exception>
|
|
// Token: 0x06002CB0 RID: 11440 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CB0")]
|
|
[Address(RVA = "0x2547030", Offset = "0x2545E30", VA = "0x182547030")]
|
|
public Queue(int capacity, float growFactor)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Queue" /> class that contains elements copied from the specified collection, has the same initial capacity as the number of elements copied, and uses the default growth factor.</summary>
|
|
/// <param name="col">The <see cref="T:System.Collections.ICollection" /> to copy elements from.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="col" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06002CB1 RID: 11441 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CB1")]
|
|
[Address(RVA = "0x2546E40", Offset = "0x2545C40", VA = "0x182546E40")]
|
|
public Queue(ICollection col)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.Queue" />.</summary>
|
|
/// <returns>The number of elements contained in the <see cref="T:System.Collections.Queue" />.</returns>
|
|
// Token: 0x170006C7 RID: 1735
|
|
// (get) Token: 0x06002CB2 RID: 11442 RVA: 0x000176D0 File Offset: 0x000158D0
|
|
[Token(Token = "0x170006C7")]
|
|
public virtual int Count
|
|
{
|
|
[Token(Token = "0x6002CB2")]
|
|
[Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310", Slot = "10")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates a shallow copy of the <see cref="T:System.Collections.Queue" />.</summary>
|
|
/// <returns>A shallow copy of the <see cref="T:System.Collections.Queue" />.</returns>
|
|
// Token: 0x06002CB3 RID: 11443 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002CB3")]
|
|
[Address(RVA = "0x2546560", Offset = "0x2545360", VA = "0x182546560", Slot = "11")]
|
|
public virtual object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether access to the <see cref="T:System.Collections.Queue" /> is synchronized (thread safe).</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if access to the <see cref="T:System.Collections.Queue" /> is synchronized (thread safe); otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
|
|
// Token: 0x170006C8 RID: 1736
|
|
// (get) Token: 0x06002CB4 RID: 11444 RVA: 0x000176E8 File Offset: 0x000158E8
|
|
[Token(Token = "0x170006C8")]
|
|
public virtual bool IsSynchronized
|
|
{
|
|
[Token(Token = "0x6002CB4")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "12")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.Queue" />.</summary>
|
|
/// <returns>An object that can be used to synchronize access to the <see cref="T:System.Collections.Queue" />.</returns>
|
|
// Token: 0x170006C9 RID: 1737
|
|
// (get) Token: 0x06002CB5 RID: 11445 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170006C9")]
|
|
public virtual object SyncRoot
|
|
{
|
|
[Token(Token = "0x6002CB5")]
|
|
[Address(RVA = "0x2547210", Offset = "0x2546010", VA = "0x182547210", Slot = "13")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Removes all objects from the <see cref="T:System.Collections.Queue" />.</summary>
|
|
// Token: 0x06002CB6 RID: 11446 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CB6")]
|
|
[Address(RVA = "0x2546500", Offset = "0x2545300", VA = "0x182546500", Slot = "14")]
|
|
public virtual void Clear()
|
|
{
|
|
}
|
|
|
|
/// <summary>Copies the <see cref="T:System.Collections.Queue" /> elements to an existing one-dimensional <see cref="T:System.Array" />, starting at the specified array index.</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.Queue" />. 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.Queue" /> is greater than the available space from <paramref name="index" /> to the end of the destination <paramref name="array" />.</exception>
|
|
/// <exception cref="T:System.ArrayTypeMismatchException">The type of the source <see cref="T:System.Collections.Queue" /> cannot be cast automatically to the type of the destination <paramref name="array" />.</exception>
|
|
// Token: 0x06002CB7 RID: 11447 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CB7")]
|
|
[Address(RVA = "0x2546660", Offset = "0x2545460", VA = "0x182546660", Slot = "15")]
|
|
public virtual void CopyTo(Array array, int index)
|
|
{
|
|
}
|
|
|
|
/// <summary>Adds an object to the end of the <see cref="T:System.Collections.Queue" />.</summary>
|
|
/// <param name="obj">The object to add to the <see cref="T:System.Collections.Queue" />. The value can be <see langword="null" />.</param>
|
|
// Token: 0x06002CB8 RID: 11448 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CB8")]
|
|
[Address(RVA = "0x2546950", Offset = "0x2545750", VA = "0x182546950", Slot = "16")]
|
|
public virtual void Enqueue(object obj)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns an enumerator that iterates through the <see cref="T:System.Collections.Queue" />.</summary>
|
|
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:System.Collections.Queue" />.</returns>
|
|
// Token: 0x06002CB9 RID: 11449 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002CB9")]
|
|
[Address(RVA = "0x2546B40", Offset = "0x2545940", VA = "0x182546B40", Slot = "17")]
|
|
public virtual IEnumerator GetEnumerator()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Removes and returns the object at the beginning of the <see cref="T:System.Collections.Queue" />.</summary>
|
|
/// <returns>The object that is removed from the beginning of the <see cref="T:System.Collections.Queue" />.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Collections.Queue" /> is empty.</exception>
|
|
// Token: 0x06002CBA RID: 11450 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002CBA")]
|
|
[Address(RVA = "0x2546860", Offset = "0x2545660", VA = "0x182546860", Slot = "18")]
|
|
public virtual object Dequeue()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the object at the beginning of the <see cref="T:System.Collections.Queue" /> without removing it.</summary>
|
|
/// <returns>The object at the beginning of the <see cref="T:System.Collections.Queue" />.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Collections.Queue" /> is empty.</exception>
|
|
// Token: 0x06002CBB RID: 11451 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002CBB")]
|
|
[Address(RVA = "0x2546BD0", Offset = "0x25459D0", VA = "0x182546BD0", Slot = "19")]
|
|
public virtual object Peek()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002CBC RID: 11452 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002CBC")]
|
|
[Address(RVA = "0x2546B00", Offset = "0x2545900", VA = "0x182546B00")]
|
|
internal object GetElement(int i)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Copies the <see cref="T:System.Collections.Queue" /> elements to a new array.</summary>
|
|
/// <returns>A new array containing elements copied from the <see cref="T:System.Collections.Queue" />.</returns>
|
|
// Token: 0x06002CBD RID: 11453 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002CBD")]
|
|
[Address(RVA = "0x2546D70", Offset = "0x2545B70", VA = "0x182546D70", Slot = "20")]
|
|
public virtual object[] ToArray()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002CBE RID: 11454 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CBE")]
|
|
[Address(RVA = "0x2546C90", Offset = "0x2545A90", VA = "0x182546C90")]
|
|
private void SetCapacity(int capacity)
|
|
{
|
|
}
|
|
|
|
// Token: 0x040019B2 RID: 6578
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40019B2")]
|
|
private object[] _array;
|
|
|
|
// Token: 0x040019B3 RID: 6579
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40019B3")]
|
|
private int _head;
|
|
|
|
// Token: 0x040019B4 RID: 6580
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x40019B4")]
|
|
private int _tail;
|
|
|
|
// Token: 0x040019B5 RID: 6581
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40019B5")]
|
|
private int _size;
|
|
|
|
// Token: 0x040019B6 RID: 6582
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x40019B6")]
|
|
private int _growFactor;
|
|
|
|
// Token: 0x040019B7 RID: 6583
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40019B7")]
|
|
private int _version;
|
|
|
|
// Token: 0x040019B8 RID: 6584
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40019B8")]
|
|
[NonSerialized]
|
|
private object _syncRoot;
|
|
|
|
// Token: 0x040019B9 RID: 6585
|
|
[Token(Token = "0x40019B9")]
|
|
private const int _MinimumGrow = 4;
|
|
|
|
// Token: 0x040019BA RID: 6586
|
|
[Token(Token = "0x40019BA")]
|
|
private const int _ShrinkThreshold = 32;
|
|
|
|
// Token: 0x020005C6 RID: 1478
|
|
[Token(Token = "0x20005C6")]
|
|
[Serializable]
|
|
private class QueueEnumerator : IEnumerator, ICloneable
|
|
{
|
|
// Token: 0x06002CBF RID: 11455 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CBF")]
|
|
[Address(RVA = "0x25463D0", Offset = "0x25451D0", VA = "0x1825463D0")]
|
|
internal QueueEnumerator(Queue q)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002CC0 RID: 11456 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002CC0")]
|
|
[Address(RVA = "0x6A0DF0", Offset = "0x69FBF0", VA = "0x1806A0DF0", Slot = "7")]
|
|
public object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002CC1 RID: 11457 RVA: 0x00017700 File Offset: 0x00015900
|
|
[Token(Token = "0x6002CC1")]
|
|
[Address(RVA = "0x2546210", Offset = "0x2545010", VA = "0x182546210", Slot = "8")]
|
|
public virtual bool MoveNext()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x170006CA RID: 1738
|
|
// (get) Token: 0x06002CC2 RID: 11458 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170006CA")]
|
|
public virtual object Current
|
|
{
|
|
[Token(Token = "0x6002CC2")]
|
|
[Address(RVA = "0x2546430", Offset = "0x2545230", VA = "0x182546430", Slot = "9")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002CC3 RID: 11459 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CC3")]
|
|
[Address(RVA = "0x2546320", Offset = "0x2545120", VA = "0x182546320", Slot = "10")]
|
|
public virtual void Reset()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040019BB RID: 6587
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40019BB")]
|
|
private Queue _q;
|
|
|
|
// Token: 0x040019BC RID: 6588
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40019BC")]
|
|
private int _index;
|
|
|
|
// Token: 0x040019BD RID: 6589
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x40019BD")]
|
|
private int _version;
|
|
|
|
// Token: 0x040019BE RID: 6590
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40019BE")]
|
|
private object currentElement;
|
|
}
|
|
|
|
// Token: 0x020005C7 RID: 1479
|
|
[Token(Token = "0x20005C7")]
|
|
internal class QueueDebugView
|
|
{
|
|
}
|
|
}
|
|
}
|