Struct FastListStruct<T>
- Namespace
- Stride.Core.Collections
- Assembly
- Stride.Core.dll
public struct FastListStruct<T> : IEnumerable<T>, IEnumerable
Type Parameters
T
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
FastListStruct(FastList<T>)
public FastListStruct(FastList<T> fastList)
Parameters
fastList
FastList<T>
FastListStruct(int)
public FastListStruct(int capacity)
Parameters
capacity
int
FastListStruct(T[])
public FastListStruct(T[] array)
Parameters
array
T[]
Fields
Count
public int Count
Field Value
Items
Gets the items.
public T[] Items
Field Value
- T[]
Properties
this[int]
public T this[int index] { get; set; }
Parameters
index
int
Property Value
- T
Methods
Add(T)
public void Add(T item)
Parameters
item
T
AddRange(FastListStruct<T>)
public void AddRange(FastListStruct<T> items)
Parameters
items
FastListStruct<T>
Clear()
public void Clear()
Contains(T)
public bool Contains(T item)
Parameters
item
T
Returns
EnsureCapacity(int)
public void EnsureCapacity(int newCapacity)
Parameters
newCapacity
int
GetEnumerator()
public FastListStruct<T>.Enumerator GetEnumerator()
Returns
IndexOf(T)
public int IndexOf(T item)
Parameters
item
T
Returns
Insert(int, T)
public void Insert(int index, T item)
Parameters
index
intitem
T
Remove(T)
public bool Remove(T item)
Parameters
item
T
Returns
RemoveAt(int)
public void RemoveAt(int index)
Parameters
index
int
SwapRemoveAt(int)
Remove an item by swapping it with the last item and removing it from the last position. This function prevents to shift values from the list on removal but does not maintain order.
public void SwapRemoveAt(int index)
Parameters
index
intIndex of the item to remove.
ToArray()
public T[] ToArray()
Returns
- T[]
Operators
implicit operator FastListStruct<T>(FastList<T>)
public static implicit operator FastListStruct<T>(FastList<T> fastList)
Parameters
fastList
FastList<T>
Returns
implicit operator FastListStruct<T>(T[])
public static implicit operator FastListStruct<T>(T[] array)
Parameters
array
T[]