Struct FixedList32<T>
An unmanaged, resizable list that does not allocate memory.
It is 32 bytes in size, and contains all the memory it needs.
Syntax
public struct FixedList32<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
FixedList32(FixedList128<T>)
Declaration
public FixedList32(in FixedList128<T> other)
Parameters
FixedList32(FixedList4096<T>)
Declaration
public FixedList32(in FixedList4096<T> other)
Parameters
FixedList32(FixedList512<T>)
Declaration
public FixedList32(in FixedList512<T> other)
Parameters
FixedList32(FixedList64<T>)
Declaration
public FixedList32(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 FixedList32<T>.Enumerator GetEnumerator()
Returns
Type |
Description |
FixedList32.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(FixedList32<T>, FixedList128<T>)
Declaration
public static bool operator ==(in FixedList32<T> a, in FixedList128<T> b)
Parameters
Returns
Equality(FixedList32<T>, FixedList32<T>)
Declaration
public static bool operator ==(in FixedList32<T> a, in FixedList32<T> b)
Parameters
Returns
Equality(FixedList32<T>, FixedList4096<T>)
Declaration
public static bool operator ==(in FixedList32<T> a, in FixedList4096<T> b)
Parameters
Returns
Equality(FixedList32<T>, FixedList512<T>)
Declaration
public static bool operator ==(in FixedList32<T> a, in FixedList512<T> b)
Parameters
Returns
Equality(FixedList32<T>, FixedList64<T>)
Declaration
public static bool operator ==(in FixedList32<T> a, in FixedList64<T> b)
Parameters
Returns
Implicit(FixedList128<T> to FixedList32<T>)
Declaration
public static implicit operator FixedList32<T>(in FixedList128<T> other)
Parameters
Returns
Implicit(FixedList4096<T> to FixedList32<T>)
Declaration
public static implicit operator FixedList32<T>(in FixedList4096<T> other)
Parameters
Returns
Implicit(FixedList512<T> to FixedList32<T>)
Declaration
public static implicit operator FixedList32<T>(in FixedList512<T> other)
Parameters
Returns
Implicit(FixedList64<T> to FixedList32<T>)
Declaration
public static implicit operator FixedList32<T>(in FixedList64<T> other)
Parameters
Returns
Inequality(FixedList32<T>, FixedList128<T>)
Declaration
public static bool operator !=(in FixedList32<T> a, in FixedList128<T> b)
Parameters
Returns
Inequality(FixedList32<T>, FixedList32<T>)
Declaration
public static bool operator !=(in FixedList32<T> a, in FixedList32<T> b)
Parameters
Returns
Inequality(FixedList32<T>, FixedList4096<T>)
Declaration
public static bool operator !=(in FixedList32<T> a, in FixedList4096<T> b)
Parameters
Returns
Inequality(FixedList32<T>, FixedList512<T>)
Declaration
public static bool operator !=(in FixedList32<T> a, in FixedList512<T> b)
Parameters
Returns
Inequality(FixedList32<T>, FixedList64<T>)
Declaration
public static bool operator !=(in FixedList32<T> a, in FixedList64<T> b)
Parameters
Returns
Extension Methods
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.