Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.ArraySegment< T > Struct Template Reference

Classes

struct  Enumerator
 

Public Member Functions

 ArraySegment (T[] array)
 
 ArraySegment (T[] array, int offset, int count)
 
Enumerator GetEnumerator ()
 
override int GetHashCode ()
 
void CopyTo (T[] destination)
 
void CopyTo (T[] destination, int destinationIndex)
 
void CopyTo (ArraySegment< T > destination)
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (ArraySegment< T > obj)
 
ArraySegment< TSlice (int index)
 
ArraySegment< TSlice (int index, int count)
 
T[] ToArray ()
 
int IList< T >. IndexOf (T item)
 
void IList< T >. Insert (int index, T item)
 
void IList< T >. RemoveAt (int index)
 
void ICollection< T >. Add (T item)
 
void ICollection< T >. Clear ()
 
bool ICollection< T >. Contains (T item)
 
bool ICollection< T >. Remove (T item)
 
IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 
int Add (object? value)
 
bool Contains (object? value)
 
int IndexOf (object? value)
 
void Insert (int index, object? value)
 
void Remove (object? value)
 
void CopyTo (Array array, int index)
 

Static Public Member Functions

static bool operator== (ArraySegment< T > a, ArraySegment< T > b)
 
static bool operator!= (ArraySegment< T > a, ArraySegment< T > b)
 
static implicit operator ArraySegment< T > (T[] array)
 

Properties

static ArraySegment< TEmpty = new ArraySegment<T>(new T[0]) [get]
 
T?[] Array [get]
 
int Offset [get]
 
int Count [get]
 
T this[int index] [get, set]
 
T IList< T >. this[int index] [get, set]
 
T IReadOnlyList< T >. this[int index] [get]
 
bool ICollection< T >. IsReadOnly [get]
 
bool IsFixedSize [get]
 
object SyncRoot [get]
 
bool IsSynchronized [get]
 

Private Member Functions

void ThrowInvalidOperationIfDefault ()
 

Private Attributes

readonly T[] _array
 
readonly int _offset
 
readonly int _count
 

Detailed Description

Definition at line 10 of file ArraySegment.cs.


The documentation for this struct was generated from the following file: