Struct FixedList64Bytes<T>
An unmanaged, resizable list whose content is all stored directly in the 64-byte struct. Useful for small lists.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
[Serializable]
public struct FixedList64Bytes<T> : INativeList<T>, IIndexable<T> where T : unmanaged
Type Parameters
Name | Description |
---|---|
T | The type of the elements. |
Constructors
Name | Description |
---|---|
FixedList64Bytes(in FixedList128Bytes<T>) | Initializes and returns an instance of FixedList64Bytes with content copied from another list. |
FixedList64Bytes(in FixedList32Bytes<T>) | Initializes and returns an instance of FixedList64Bytes with content copied from another list. |
FixedList64Bytes(in FixedList4096Bytes<T>) | Initializes and returns an instance of FixedList64Bytes with content copied from another list. |
FixedList64Bytes(in FixedList512Bytes<T>) | Initializes and returns an instance of FixedList64Bytes with content copied from another list. |
Properties
Name | Description |
---|---|
Capacity | The number of elements that can fit in this list. |
IsEmpty | Whether this list is empty. |
this[int] | The element at a given index. |
Length | The current number of items in this list. |
Methods
Name | Description |
---|---|
Add(in T) | Appends an element to the end of this list. Increments the length by 1. |
AddNoResize(in T) | Appends an element to the end of this list. Increments the length by 1. |
AddRange(void*, int) | Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements. |
AddRangeNoResize(void*, int) | Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements. |
AddReplicate(in T, int) | Appends value count times to the end of this list. |
Clear() | Sets the length to 0. |
CompareTo(FixedList128Bytes<T>) | Returns a number denoting whether this list should be placed before or after another list in a sort. |
CompareTo(FixedList32Bytes<T>) | Returns a number denoting whether this list should be placed before or after another list in a sort. |
CompareTo(FixedList4096Bytes<T>) | Returns a number denoting whether this list should be placed before or after another list in a sort. |
CompareTo(FixedList512Bytes<T>) | Returns a number denoting whether this list should be placed before or after another list in a sort. |
CompareTo(FixedList64Bytes<T>) | Returns a number denoting whether this list should be placed before or after another list in a sort. |
ElementAt(int) | Returns the element at a given index. |
Equals(object) | Returns true if the list is equal to an object. |
Equals(FixedList128Bytes<T>) | Returns true if this list and another list are equal. |
Equals(FixedList32Bytes<T>) | Returns true if this list and another list are equal. |
Equals(FixedList4096Bytes<T>) | Returns true if this list and another list are equal. |
Equals(FixedList512Bytes<T>) | Returns true if this list and another list are equal. |
Equals(FixedList64Bytes<T>) | Returns true if this list and another list are equal. |
GetEnumerator() | Returns an enumerator for iterating over the elements of this list. |
GetHashCode() | Returns the hash code of this list. |
Insert(int, in T) | Inserts a single element at an index. Increments the length by 1. |
InsertRange(int, int) | Shifts elements toward the end of this list, increasing its length. |
InsertRangeWithBeginEnd(int, int) | Shifts elements toward the end of this list, increasing its length. |
RemoveAt(int) | Removes the element at an index. Shifts everything above the index down by one and decrements the length by 1. |
RemoveAtSwapBack(int) | Copies the last element of this list to an index. Decrements the length by 1. |
RemoveRange(int, int) | Removes N elements of a range. Shifts everything above the range down by N and decrements the length by N. |
RemoveRangeSwapBack(int, int) | Copies the last N elements of this list to a range in this list. Decrements the length by N. |
ToArray() | Returns a managed array that is a copy of this list. |
ToNativeArray(AllocatorHandle) | Returns an array that is a copy of this list. |