Table of Contents

Struct FastListStruct<T>

Namespace
Stride.Core.Collections
Assembly
Stride.Core.dll
public struct FastListStruct<T> : IEnumerable<T>, IEnumerable

Type Parameters

T
Implements
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

int

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

bool

EnsureCapacity(int)

public void EnsureCapacity(int newCapacity)

Parameters

newCapacity int

GetEnumerator()

public FastListStruct<T>.Enumerator GetEnumerator()

Returns

FastListStruct<T>.Enumerator

IndexOf(T)

public int IndexOf(T item)

Parameters

item T

Returns

int

Insert(int, T)

public void Insert(int index, T item)

Parameters

index int
item T

Remove(T)

public bool Remove(T item)

Parameters

item T

Returns

bool

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 int

Index 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

FastListStruct<T>

implicit operator FastListStruct<T>(T[])

public static implicit operator FastListStruct<T>(T[] array)

Parameters

array T[]

Returns

FastListStruct<T>