Class FixedListExtensions
Namespace: Unity.Collections
Syntax
public static class FixedListExtensions
Methods
Sort<T>(ref FixedList128<T>)
Sorts the elements in this FixedList128<T> in ascending order.
Declaration
public static void Sort<T>(this ref FixedList128<T> data)
where T : struct, IComparable<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList128<T> | data | Container to perform sort. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
Sort<T>(ref FixedList32<T>)
Sorts the elements in this FixedList32<T> in ascending order.
Declaration
public static void Sort<T>(this ref FixedList32<T> data)
where T : struct, IComparable<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList32<T> | data | Container to perform sort. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
Sort<T>(ref FixedList4096<T>)
Sorts the elements in this FixedList4096<T> in ascending order.
Declaration
public static void Sort<T>(this ref FixedList4096<T> data)
where T : struct, IComparable<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList4096<T> | data | Container to perform sort. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
Sort<T>(ref FixedList512<T>)
Sorts the elements in this FixedList512<T> in ascending order.
Declaration
public static void Sort<T>(this ref FixedList512<T> data)
where T : struct, IComparable<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList512<T> | data | Container to perform sort. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
Sort<T>(ref FixedList64<T>)
Sorts the elements in this FixedList64<T> in ascending order.
Declaration
public static void Sort<T>(this ref FixedList64<T> data)
where T : struct, IComparable<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList64<T> | data | Container to perform sort. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
Sort<T, U>(ref FixedList128<T>, U)
Sorts the elements in this FixedList128<T> using a custom comparison function.
Declaration
public static void Sort<T, U>(this ref FixedList128<T> data, U comp)
where T : struct, IComparable<T> where U : IComparer<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList128<T> | data | Container to perform sort. |
U | comp | A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
U | The comparer type. |
Sort<T, U>(ref FixedList32<T>, U)
Sorts the elements in this FixedList32<T> using a custom comparison function.
Declaration
public static void Sort<T, U>(this ref FixedList32<T> data, U comp)
where T : struct, IComparable<T> where U : IComparer<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList32<T> | data | Container to perform sort. |
U | comp | A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
U | The comparer type. |
Sort<T, U>(ref FixedList4096<T>, U)
Sorts the elements in this FixedList4096<T> using a custom comparison function.
Declaration
public static void Sort<T, U>(this ref FixedList4096<T> data, U comp)
where T : struct, IComparable<T> where U : IComparer<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList4096<T> | data | Container to perform sort. |
U | comp | A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
U | The comparer type. |
Sort<T, U>(ref FixedList512<T>, U)
Sorts the elements in this FixedList512<T> using a custom comparison function.
Declaration
public static void Sort<T, U>(this ref FixedList512<T> data, U comp)
where T : struct, IComparable<T> where U : IComparer<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList512<T> | data | Container to perform sort. |
U | comp | A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
U | The comparer type. |
Sort<T, U>(ref FixedList64<T>, U)
Sorts the elements in this FixedList64<T> using a custom comparison function.
Declaration
public static void Sort<T, U>(this ref FixedList64<T> data, U comp)
where T : struct, IComparable<T> where U : IComparer<T>
Parameters
Type | Name | Description |
---|---|---|
FixedList64<T> | data | Container to perform sort. |
U | comp | A comparison function that indicates whether one element in the array is less than, equal to, or greater than another element. |
Type Parameters
Name | Description |
---|---|
T | The type of the elements in the container. |
U | The comparer type. |