Files
2026-04-10 22:50:51 +02:00

338 lines
12 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using Cpp2IlInjected;
namespace System
{
/// <summary>Delimits a section of a one-dimensional array.</summary>
/// <typeparam name="T">The type of the elements in the array segment.</typeparam>
// Token: 0x020000B3 RID: 179
[Token(Token = "0x20000B3")]
[Serializable]
public struct ArraySegment<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IReadOnlyList<T>, IReadOnlyCollection<T>
{
/// <summary>Initializes a new instance of the <see cref="T:System.ArraySegment`1" /> structure that delimits all the elements in the specified array.</summary>
/// <param name="array">The array to wrap.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is <see langword="null" />.</exception>
// Token: 0x060004FD RID: 1277 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004FD")]
[Address(RVA = "0x279E3F0", Offset = "0x279D1F0", VA = "0x18279E3F0")]
public ArraySegment(T[] array)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ArraySegment`1" /> structure that delimits the specified range of the elements in the specified array.</summary>
/// <param name="array">The array containing the range of elements to delimit.</param>
/// <param name="offset">The zero-based index of the first element in the range.</param>
/// <param name="count">The number of elements in the range.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is less than 0.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="offset" /> and <paramref name="count" /> do not specify a valid range in <paramref name="array" />.</exception>
// Token: 0x060004FE RID: 1278 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004FE")]
[Address(RVA = "0x279DC70", Offset = "0x279CA70", VA = "0x18279DC70")]
public ArraySegment(T[] array, int offset, int count)
{
}
/// <summary>Gets the original array containing the range of elements that the array segment delimits.</summary>
/// <returns>The original array that was passed to the constructor, and that contains the range delimited by the <see cref="T:System.ArraySegment`1" />.</returns>
// Token: 0x1700008F RID: 143
// (get) Token: 0x060004FF RID: 1279 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700008F")]
public T[] Array
{
[Token(Token = "0x60004FF")]
[Address(RVA = "0x41D090", Offset = "0x41BE90", VA = "0x18041D090")]
get
{
return null;
}
}
/// <summary>Gets the position of the first element in the range delimited by the array segment, relative to the start of the original array.</summary>
/// <returns>The position of the first element in the range delimited by the <see cref="T:System.ArraySegment`1" />, relative to the start of the original array.</returns>
// Token: 0x17000090 RID: 144
// (get) Token: 0x06000500 RID: 1280 RVA: 0x00004158 File Offset: 0x00002358
[Token(Token = "0x17000090")]
public int Offset
{
[Token(Token = "0x6000500")]
[Address(RVA = "0x4C4D90", Offset = "0x4C3B90", VA = "0x1804C4D90")]
get
{
return 0;
}
}
/// <summary>Gets the number of elements in the range delimited by the array segment.</summary>
/// <returns>The number of elements in the range delimited by the <see cref="T:System.ArraySegment`1" />.</returns>
// Token: 0x17000091 RID: 145
// (get) Token: 0x06000501 RID: 1281 RVA: 0x00004170 File Offset: 0x00002370
[Token(Token = "0x17000091")]
public int Count
{
[Token(Token = "0x6000501")]
[Address(RVA = "0x5DD020", Offset = "0x5DBE20", VA = "0x1805DD020", Slot = "19")]
get
{
return 0;
}
}
/// <summary>Returns the hash code for the current instance.</summary>
/// <returns>A 32-bit signed integer hash code.</returns>
// Token: 0x06000502 RID: 1282 RVA: 0x00004188 File Offset: 0x00002388
[Token(Token = "0x6000502")]
[Address(RVA = "0x2799FD0", Offset = "0x2798DD0", VA = "0x182799FD0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Determines whether the specified object is equal to the current instance.</summary>
/// <param name="obj">The object to be compared with the current instance.</param>
/// <returns>
/// <see langword="true" /> if the specified object is a <see cref="T:System.ArraySegment`1" /> structure and is equal to the current instance; otherwise, <see langword="false" />.</returns>
// Token: 0x06000503 RID: 1283 RVA: 0x000041A0 File Offset: 0x000023A0
[Token(Token = "0x6000503")]
[Address(RVA = "0x2799EC0", Offset = "0x2798CC0", VA = "0x182799EC0", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Determines whether the specified <see cref="T:System.ArraySegment`1" /> structure is equal to the current instance.</summary>
/// <param name="obj">The structure to compare with the current instance.</param>
/// <returns>
/// <see langword="true" /> if the specified <see cref="T:System.ArraySegment`1" /> structure is equal to the current instance; otherwise, <see langword="false" />.</returns>
// Token: 0x06000504 RID: 1284 RVA: 0x000041B8 File Offset: 0x000023B8
[Token(Token = "0x6000504")]
[Address(RVA = "0x2799E80", Offset = "0x2798C80", VA = "0x182799E80")]
public bool Equals(ArraySegment<T> obj)
{
return default(bool);
}
// Token: 0x17000092 RID: 146
[Token(Token = "0x17000092")]
T IList<T>.this[int index]
{
[Token(Token = "0x6000505")]
[Address(RVA = "0x279C700", Offset = "0x279B500", VA = "0x18279C700", Slot = "4")]
get
{
return null;
}
[Token(Token = "0x6000506")]
[Address(RVA = "0x279CAB0", Offset = "0x279B8B0", VA = "0x18279CAB0", Slot = "5")]
set
{
}
}
// Token: 0x06000507 RID: 1287 RVA: 0x000041D0 File Offset: 0x000023D0
[Token(Token = "0x6000507")]
[Address(RVA = "0x279BD90", Offset = "0x279AB90", VA = "0x18279BD90", Slot = "6")]
int IList<T>.IndexOf(T item)
{
return 0;
}
// Token: 0x06000508 RID: 1288 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000508")]
[Address(RVA = "0x279BF10", Offset = "0x279AD10", VA = "0x18279BF10", Slot = "7")]
void IList<T>.Insert(int index, T item)
{
}
// Token: 0x06000509 RID: 1289 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000509")]
[Address(RVA = "0x279C230", Offset = "0x279B030", VA = "0x18279C230", Slot = "8")]
void IList<T>.RemoveAt(int index)
{
}
// Token: 0x17000093 RID: 147
[Token(Token = "0x17000093")]
T IReadOnlyList<T>.this[int index]
{
[Token(Token = "0x600050A")]
[Address(RVA = "0x279CE70", Offset = "0x279BC70", VA = "0x18279CE70", Slot = "18")]
get
{
return null;
}
}
// Token: 0x17000094 RID: 148
// (get) Token: 0x0600050B RID: 1291 RVA: 0x000041E8 File Offset: 0x000023E8
[Token(Token = "0x17000094")]
bool ICollection<T>.IsReadOnly
{
[Token(Token = "0x600050B")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "10")]
get
{
return default(bool);
}
}
// Token: 0x0600050C RID: 1292 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600050C")]
[Address(RVA = "0x279A010", Offset = "0x2798E10", VA = "0x18279A010", Slot = "11")]
void ICollection<T>.Add(T item)
{
}
// Token: 0x0600050D RID: 1293 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600050D")]
[Address(RVA = "0x279A2E0", Offset = "0x27990E0", VA = "0x18279A2E0", Slot = "12")]
void ICollection<T>.Clear()
{
}
// Token: 0x0600050E RID: 1294 RVA: 0x00004200 File Offset: 0x00002400
[Token(Token = "0x600050E")]
[Address(RVA = "0x279A810", Offset = "0x2799610", VA = "0x18279A810", Slot = "13")]
bool ICollection<T>.Contains(T item)
{
return default(bool);
}
// Token: 0x0600050F RID: 1295 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600050F")]
[Address(RVA = "0x279ACF0", Offset = "0x2799AF0", VA = "0x18279ACF0", Slot = "14")]
void ICollection<T>.CopyTo(T[] array, int arrayIndex)
{
}
// Token: 0x06000510 RID: 1296 RVA: 0x00004218 File Offset: 0x00002418
[Token(Token = "0x6000510")]
[Address(RVA = "0x279AFE0", Offset = "0x2799DE0", VA = "0x18279AFE0", Slot = "15")]
bool ICollection<T>.Remove(T item)
{
return default(bool);
}
// Token: 0x06000511 RID: 1297 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000511")]
[Address(RVA = "0x279B670", Offset = "0x279A470", VA = "0x18279B670", Slot = "16")]
IEnumerator<T> IEnumerable<T>.GetEnumerator()
{
return null;
}
/// <summary>Returns an enumerator that iterates through an array segment.</summary>
/// <returns>An enumerator that can be used to iterate through the array segment.</returns>
// Token: 0x06000512 RID: 1298 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000512")]
[Address(RVA = "0x279D2F0", Offset = "0x279C0F0", VA = "0x18279D2F0", Slot = "17")]
IEnumerator IEnumerable.GetEnumerator()
{
return null;
}
// Token: 0x040001F6 RID: 502
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40001F6")]
private T[] _array;
// Token: 0x040001F7 RID: 503
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40001F7")]
private int _offset;
// Token: 0x040001F8 RID: 504
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40001F8")]
private int _count;
// Token: 0x020000B4 RID: 180
[Token(Token = "0x20000B4")]
[Serializable]
private sealed class ArraySegmentEnumerator : IEnumerator<T>, IDisposable, IEnumerator
{
// Token: 0x06000513 RID: 1299 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000513")]
[Address(RVA = "0x2799860", Offset = "0x2798660", VA = "0x182799860")]
internal ArraySegmentEnumerator(ArraySegment<T> arraySegment)
{
}
// Token: 0x06000514 RID: 1300 RVA: 0x00004230 File Offset: 0x00002430
[Token(Token = "0x6000514")]
[Address(RVA = "0x2799830", Offset = "0x2798630", VA = "0x182799830", Slot = "6")]
public bool MoveNext()
{
return default(bool);
}
// Token: 0x17000095 RID: 149
// (get) Token: 0x06000515 RID: 1301 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000095")]
public T Current
{
[Token(Token = "0x6000515")]
[Address(RVA = "0x27998C0", Offset = "0x27986C0", VA = "0x1827998C0", Slot = "4")]
get
{
return null;
}
}
// Token: 0x17000096 RID: 150
// (get) Token: 0x06000516 RID: 1302 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000096")]
object IEnumerator.Current
{
[Token(Token = "0x6000516")]
[Address(RVA = "0x24E4E50", Offset = "0x24E3C50", VA = "0x1824E4E50", Slot = "7")]
get
{
return null;
}
}
// Token: 0x06000517 RID: 1303 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000517")]
[Address(RVA = "0x2799850", Offset = "0x2798650", VA = "0x182799850", Slot = "8")]
void IEnumerator.Reset()
{
}
// Token: 0x06000518 RID: 1304 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000518")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
public void Dispose()
{
}
// Token: 0x040001F9 RID: 505
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40001F9")]
private T[] _array;
// Token: 0x040001FA RID: 506
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40001FA")]
private int _start;
// Token: 0x040001FB RID: 507
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40001FB")]
private int _end;
// Token: 0x040001FC RID: 508
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40001FC")]
private int _current;
}
}
}