a
This commit is contained in:
@@ -0,0 +1,210 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Collections.Concurrent
|
||||
{
|
||||
/// <summary>Represents a thread-safe last in-first out (LIFO) collection.</summary>
|
||||
/// <typeparam name="T">The type of the elements contained in the stack.</typeparam>
|
||||
// Token: 0x020005E1 RID: 1505
|
||||
[Token(Token = "0x20005E1")]
|
||||
[DebuggerDisplay("Count = {Count}")]
|
||||
[DebuggerTypeProxy(typeof(IProducerConsumerCollectionDebugView<>))]
|
||||
[Serializable]
|
||||
public class ConcurrentStack<T> : IEnumerable<T>, IEnumerable, ICollection, IReadOnlyCollection<T>
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> class.</summary>
|
||||
// Token: 0x06002DFE RID: 11774 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002DFE")]
|
||||
[Address(RVA = "0x118F5A0", Offset = "0x118E3A0", VA = "0x18118F5A0")]
|
||||
public ConcurrentStack()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of elements contained in the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
|
||||
/// <returns>The number of elements contained in the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</returns>
|
||||
// Token: 0x17000724 RID: 1828
|
||||
// (get) Token: 0x06002DFF RID: 11775 RVA: 0x00018078 File Offset: 0x00016278
|
||||
[Token(Token = "0x17000724")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x6002DFF")]
|
||||
[Address(RVA = "0x3448A20", Offset = "0x3447820", VA = "0x183448A20", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value indicating whether access to the <see cref="T:System.Collections.ICollection" /> is synchronized with the SyncRoot.</summary>
|
||||
/// <returns>Always returns <see langword="false" /> to indicate access is not synchronized.</returns>
|
||||
// Token: 0x17000725 RID: 1829
|
||||
// (get) Token: 0x06002E00 RID: 11776 RVA: 0x00018090 File Offset: 0x00016290
|
||||
[Token(Token = "0x17000725")]
|
||||
bool ICollection.IsSynchronized
|
||||
{
|
||||
[Token(Token = "0x6002E00")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />. This property is not supported.</summary>
|
||||
/// <returns>Returns null (Nothing in Visual Basic).</returns>
|
||||
/// <exception cref="T:System.NotSupportedException">The SyncRoot property is not supported</exception>
|
||||
// Token: 0x17000726 RID: 1830
|
||||
// (get) Token: 0x06002E01 RID: 11777 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000726")]
|
||||
object ICollection.SyncRoot
|
||||
{
|
||||
[Token(Token = "0x6002E01")]
|
||||
[Address(RVA = "0x34484E0", Offset = "0x34472E0", VA = "0x1834484E0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Removes all objects from the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
|
||||
// Token: 0x06002E02 RID: 11778 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002E02")]
|
||||
[Address(RVA = "0x34480D0", Offset = "0x3446ED0", VA = "0x1834480D0")]
|
||||
public void Clear()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Copies the elements of the <see cref="T:System.Collections.ICollection" /> to an <see cref="T:System.Array" />, starting at a particular <see cref="T:System.Array" /> index.</summary>
|
||||
/// <param name="array">The one-dimensional <see cref="T:System.Array" /> that is the destination of the elements copied from the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />. 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 a null reference (Nothing in Visual Basic).</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- <paramref name="array" /> does not have zero-based indexing. -or- <paramref name="index" /> is equal to or greater than the length of the <paramref name="array" /> -or- The number of elements in the source <see cref="T:System.Collections.ICollection" /> is greater than the available space from <paramref name="index" /> to the end of the destination <paramref name="array" />. -or- The type of the source <see cref="T:System.Collections.ICollection" /> cannot be cast automatically to the type of the destination <paramref name="array" />.</exception>
|
||||
// Token: 0x06002E03 RID: 11779 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002E03")]
|
||||
[Address(RVA = "0x34483B0", Offset = "0x34471B0", VA = "0x1834483B0", Slot = "6")]
|
||||
void ICollection.CopyTo(Array array, int index)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Inserts an object at the top of the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
|
||||
/// <param name="item">The object to push onto the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />. The value can be a null reference (Nothing in Visual Basic) for reference types.</param>
|
||||
// Token: 0x06002E04 RID: 11780 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002E04")]
|
||||
[Address(RVA = "0x34482D0", Offset = "0x34470D0", VA = "0x1834482D0")]
|
||||
public void Push(T item)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002E05 RID: 11781 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002E05")]
|
||||
[Address(RVA = "0x34481C0", Offset = "0x3446FC0", VA = "0x1834481C0")]
|
||||
private void PushCore(ConcurrentStack<T>.Node head, ConcurrentStack<T>.Node tail)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Attempts to pop and return the object at the top of the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
|
||||
/// <param name="result">When this method returns, if the operation was successful, <paramref name="result" /> contains the object removed. If no object was available to be removed, the value is unspecified.</param>
|
||||
/// <returns>true if an element was removed and returned from the top of the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> successfully; otherwise, false.</returns>
|
||||
// Token: 0x06002E06 RID: 11782 RVA: 0x000180A8 File Offset: 0x000162A8
|
||||
[Token(Token = "0x6002E06")]
|
||||
[Address(RVA = "0x3448980", Offset = "0x3447780", VA = "0x183448980")]
|
||||
public bool TryPop(out T result)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002E07 RID: 11783 RVA: 0x000180C0 File Offset: 0x000162C0
|
||||
[Token(Token = "0x6002E07")]
|
||||
[Address(RVA = "0x3448690", Offset = "0x3447490", VA = "0x183448690")]
|
||||
private bool TryPopCore(out T result)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002E08 RID: 11784 RVA: 0x000180D8 File Offset: 0x000162D8
|
||||
[Token(Token = "0x6002E08")]
|
||||
[Address(RVA = "0x3448700", Offset = "0x3447500", VA = "0x183448700")]
|
||||
private int TryPopCore(int count, out ConcurrentStack<T>.Node poppedHead)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06002E09 RID: 11785 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002E09")]
|
||||
[Address(RVA = "0x3448590", Offset = "0x3447390", VA = "0x183448590")]
|
||||
private List<T> ToList()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002E0A RID: 11786 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002E0A")]
|
||||
[Address(RVA = "0x34485E0", Offset = "0x34473E0", VA = "0x1834485E0")]
|
||||
private List<T> ToList(ConcurrentStack<T>.Node curr)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Returns an enumerator that iterates through the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</summary>
|
||||
/// <returns>An enumerator for the <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />.</returns>
|
||||
// Token: 0x06002E0B RID: 11787 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002E0B")]
|
||||
[Address(RVA = "0x3448170", Offset = "0x3446F70", VA = "0x183448170", Slot = "4")]
|
||||
public IEnumerator<T> GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002E0C RID: 11788 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002E0C")]
|
||||
[Address(RVA = "0x34480F0", Offset = "0x3446EF0", VA = "0x1834480F0")]
|
||||
private IEnumerator<T> GetEnumerator(ConcurrentStack<T>.Node head)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Returns an enumerator that iterates through a collection.</summary>
|
||||
/// <returns>An <see cref="T:System.Collections.IEnumerator" /> that can be used to iterate through the collection.</returns>
|
||||
// Token: 0x06002E0D RID: 11789 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002E0D")]
|
||||
[Address(RVA = "0x3448540", Offset = "0x3447340", VA = "0x183448540", Slot = "5")]
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04001A19 RID: 6681
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4001A19")]
|
||||
private ConcurrentStack<T>.Node _head;
|
||||
|
||||
// Token: 0x020005E2 RID: 1506
|
||||
[Token(Token = "0x20005E2")]
|
||||
[Serializable]
|
||||
private class Node
|
||||
{
|
||||
// Token: 0x06002E0E RID: 11790 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002E0E")]
|
||||
[Address(RVA = "0x3448A70", Offset = "0x3447870", VA = "0x183448A70")]
|
||||
internal Node(T value)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001A1A RID: 6682
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4001A1A")]
|
||||
internal readonly T _value;
|
||||
|
||||
// Token: 0x04001A1B RID: 6683
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4001A1B")]
|
||||
internal ConcurrentStack<T>.Node _next;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user