Struct FixedList512<T>
An unmanaged, resizable list that does not allocate memory.
It is 512 bytes in size, and contains all the memory it needs.
Syntax
public struct FixedList512<T> : IEnumerable<T>, IEnumerable, IEquatable<FixedList32<T>>, IComparable<FixedList32<T>>, IEquatable<FixedList64<T>>, IComparable<FixedList64<T>>, IEquatable<FixedList128<T>>, IComparable<FixedList128<T>>, IEquatable<FixedList512<T>>, IComparable<FixedList512<T>>, IEquatable<FixedList4096<T>>, IComparable<FixedList4096<T>> where T : struct, IComparable<T>
Type Parameters
Constructors
FixedList512(FixedList128<T>)
Declaration
public FixedList512(in FixedList128<T> other)
Parameters
FixedList512(FixedList32<T>)
Declaration
public FixedList512(in FixedList32<T> other)
Parameters
FixedList512(FixedList4096<T>)
Declaration
public FixedList512(in FixedList4096<T> other)
Parameters
FixedList512(FixedList64<T>)
Declaration
public FixedList512(in FixedList64<T> other)
Parameters
Properties
Capacity
The number of items that can fit in the list.
Declaration
public int Capacity { get; }
Property Value
Type |
Description |
Int32 |
The number of items that the list can hold.
|
Item[Int32]
Retrieve a member of the list by index.
Declaration
public T this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
The zero-based index into the list.
|
Property Value
Type |
Description |
T |
The list item at the specified index.
|
Exceptions
Length
The current number of items in the list.
Declaration
public int Length { get; set; }
Property Value
Type |
Description |
Int32 |
The item length.
|
Methods
Add(T)
Adds an element to the list.
Declaration
public void Add(in T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Exceptions
AddNoResize(T)
Adds an element to the list.
Declaration
public void AddNoResize(in T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Exceptions
Clear()
Declaration
CompareTo(FixedList128<T>)
Declaration
public int CompareTo(FixedList128<T> other)
Parameters
Returns
CompareTo(FixedList32<T>)
Declaration
public int CompareTo(FixedList32<T> other)
Parameters
Returns
CompareTo(FixedList4096<T>)
Declaration
public int CompareTo(FixedList4096<T> other)
Parameters
Returns
CompareTo(FixedList512<T>)
Declaration
public int CompareTo(FixedList512<T> other)
Parameters
Returns
CompareTo(FixedList64<T>)
Declaration
public int CompareTo(FixedList64<T> other)
Parameters
Returns
Contains(T)
Declaration
public bool Contains(in T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Equals(Object)
Compares this instance with a specified object and indicates whether this instance
is equal to the specified object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
The specified object to compare with for equality
|
Returns
Overrides
Equals(FixedList128<T>)
Declaration
public bool Equals(FixedList128<T> other)
Parameters
Returns
Equals(FixedList32<T>)
Declaration
public bool Equals(FixedList32<T> other)
Parameters
Returns
Equals(FixedList4096<T>)
Declaration
public bool Equals(FixedList4096<T> other)
Parameters
Returns
Equals(FixedList512<T>)
Declaration
public bool Equals(FixedList512<T> other)
Parameters
Returns
Equals(FixedList64<T>)
Declaration
public bool Equals(FixedList64<T> other)
Parameters
Returns
GetEnumerator()
Returns an enumerator that iterates through a container.
Declaration
public FixedList512<T>.Enumerator GetEnumerator()
Returns
Type |
Description |
FixedList512.Enumerator<> |
An IEnumerator object that can be used to iterate through the container.
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
IndexOf(T)
Declaration
public int IndexOf(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
IndexOf(T, Int32)
Declaration
public int IndexOf(in T item, int index)
Parameters
Type |
Name |
Description |
T |
item |
|
Int32 |
index |
|
Returns
IndexOf(T, Int32, Int32)
Declaration
public int IndexOf(in T item, int index, int count)
Parameters
Type |
Name |
Description |
T |
item |
|
Int32 |
index |
|
Int32 |
count |
|
Returns
Insert(Int32, T)
Declaration
public void Insert(int index, in T item)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
T |
item |
|
InsertRange(Int32, Int32)
Declaration
public void InsertRange(int begin, int end)
Parameters
Remove(T)
Declaration
public bool Remove(in T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
RemoveAt(Int32)
Removes the T at the specified index, and copies all subsequent elements backward to fill the
hole so created.
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
The zero-based index at which to remove the T
|
RemoveAtSwapBack(Int32)
Declaration
public void RemoveAtSwapBack(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
RemoveRange(Int32, Int32)
Declaration
public void RemoveRange(int begin, int end)
Parameters
RemoveSwapBack(T)
Declaration
public void RemoveSwapBack(in T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Sort()
Declaration
ToArray()
Declaration
Returns
ToNativeArray(Allocator)
Declaration
public NativeArray<T> ToNativeArray(Allocator allocator)
Parameters
Type |
Name |
Description |
Allocator |
allocator |
|
Returns
Type |
Description |
NativeArray<T> |
|
Operators
Equality(FixedList512<T>, FixedList128<T>)
Declaration
public static bool operator ==(in FixedList512<T> a, in FixedList128<T> b)
Parameters
Returns
Equality(FixedList512<T>, FixedList32<T>)
Declaration
public static bool operator ==(in FixedList512<T> a, in FixedList32<T> b)
Parameters
Returns
Equality(FixedList512<T>, FixedList4096<T>)
Declaration
public static bool operator ==(in FixedList512<T> a, in FixedList4096<T> b)
Parameters
Returns
Equality(FixedList512<T>, FixedList512<T>)
Declaration
public static bool operator ==(in FixedList512<T> a, in FixedList512<T> b)
Parameters
Returns
Equality(FixedList512<T>, FixedList64<T>)
Declaration
public static bool operator ==(in FixedList512<T> a, in FixedList64<T> b)
Parameters
Returns
Implicit(FixedList128<T> to FixedList512<T>)
Declaration
public static implicit operator FixedList512<T>(in FixedList128<T> other)
Parameters
Returns
Implicit(FixedList32<T> to FixedList512<T>)
Declaration
public static implicit operator FixedList512<T>(in FixedList32<T> other)
Parameters
Returns
Implicit(FixedList4096<T> to FixedList512<T>)
Declaration
public static implicit operator FixedList512<T>(in FixedList4096<T> other)
Parameters
Returns
Implicit(FixedList64<T> to FixedList512<T>)
Declaration
public static implicit operator FixedList512<T>(in FixedList64<T> other)
Parameters
Returns
Inequality(FixedList512<T>, FixedList128<T>)
Declaration
public static bool operator !=(in FixedList512<T> a, in FixedList128<T> b)
Parameters
Returns
Inequality(FixedList512<T>, FixedList32<T>)
Declaration
public static bool operator !=(in FixedList512<T> a, in FixedList32<T> b)
Parameters
Returns
Inequality(FixedList512<T>, FixedList4096<T>)
Declaration
public static bool operator !=(in FixedList512<T> a, in FixedList4096<T> b)
Parameters
Returns
Inequality(FixedList512<T>, FixedList512<T>)
Declaration
public static bool operator !=(in FixedList512<T> a, in FixedList512<T> b)
Parameters
Returns
Inequality(FixedList512<T>, FixedList64<T>)
Declaration
public static bool operator !=(in FixedList512<T> a, in FixedList64<T> b)
Parameters
Returns
Extension Methods