Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FixedList64Bytes<T>

An unmanaged, resizable list whose content is all stored directly in the 64-byte struct. Useful for small lists.
Read time 3 minutesLast updated 6 days ago

Definition

public struct FixedList64Bytes<T> : INativeList<T>, IIndexable<T>, IEnumerable<T>, IEnumerable, IEquatable<FixedList32Bytes<T>>, IComparable<FixedList32Bytes<T>>, IEquatable<FixedList64Bytes<T>>, IComparable<FixedList64Bytes<T>>, IEquatable<FixedList128Bytes<T>>, IComparable<FixedList128Bytes<T>>, IEquatable<FixedList512Bytes<T>>, IComparable<FixedList512Bytes<T>>, IEquatable<FixedList4096Bytes<T>>, IComparable<FixedList4096Bytes<T>> where T : unmanaged

Constructors

Constructor

Description

FixedList64Bytes`1(Unity.Collections.FixedList128Bytes{`0}@)Initializes and returns an instance of FixedList64Bytes with content copied from another list.
FixedList64Bytes`1(Unity.Collections.FixedList32Bytes{`0}@)Initializes and returns an instance of FixedList64Bytes with content copied from another list.
FixedList64Bytes`1(Unity.Collections.FixedList4096Bytes{`0}@)Initializes and returns an instance of FixedList64Bytes with content copied from another list.
FixedList64Bytes`1(Unity.Collections.FixedList512Bytes{`0}@)Initializes and returns an instance of FixedList64Bytes with content copied from another list.

Properties

Property

Description

CapacityThe number of elements that can fit in this list.
IsEmptyWhether this list is empty.
this[]The element at a given index.
LengthThe current number of items in this list.

Methods

Method

Description

AddAppends an element to the end of this list. Increments the length by 1.
AddNoResizeAppends an element to the end of this list. Increments the length by 1.
AddRangeCopies elements from a ReadOnlySpan to the end of this list.
AddRangeNoResizeCopies elements from a ReadOnlySpan to the end of this list.
AddReplicateAppends value count times to the end of this list.
AsReadOnlySpanReturns ReadOnlySpan\<T\> view of this container.
AsSpanReturns Span\<T\> view of this container.
ClearSets the length to 0.
CompareToReturns a number denoting whether this list should be placed before or after another list in a sort.
ElementAtReturns the element at a given index.
EqualsReturns true if the list is equal to an object.
GetEnumeratorReturns an enumerator for iterating over the elements of this list.
GetHashCodeReturns the hash code of this list.
GetUnsafePtrGet a pointer to the data.
GetUnsafeReadOnlyPtrGet a pointer to the data.
InsertInserts a single element at an index. Increments the length by 1.
InsertRangeShifts elements toward the end of this list, increasing its length.
InsertRangeWithBeginEndShifts elements toward the end of this list, increasing its length.
RemoveAtRemoves the element at an index. Shifts everything above the index down by one and decrements the length by 1.
RemoveAtSwapBackCopies the last element of this list to an index. Decrements the length by 1.
RemoveRangeRemoves "N" elements of a range. Shifts everything above the range down by "N" and decrements the length by "N".
RemoveRangeSwapBackCopies the last "N" elements of this list to a range in this list. Decrements the length by "N".
ToArrayReturns a managed array that is a copy of this list.
ToNativeArrayReturns an array that is a copy of this list.

Operators

Operator

Description

operator ==Returns true if two lists are equal.
operator !=Returns true if two lists are unequal.

Structs

Struct

Description

FixedList64Bytes<T>.EnumeratorAn enumerator over the elements of a FixedList64Bytes\<T\>.