# FixedList64Bytes<T>

> An unmanaged, resizable list whose content is all stored directly in the 64-byte struct. Useful for small lists.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule
* **Implements:** [INativeList\<T>](/engine/6000.7/script-reference/unity/collections/inativelist1.md), [IIndexable\<T>](/engine/6000.7/script-reference/unity/collections/iindexable1.md), [IEnumerable\<T>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable), [IEquatable\<FixedList32Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IComparable\<FixedList32Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.icomparable-1), [IEquatable\<FixedList64Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IComparable\<FixedList64Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.icomparable-1), [IEquatable\<FixedList128Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IComparable\<FixedList128Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.icomparable-1), [IEquatable\<FixedList512Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IComparable\<FixedList512Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.icomparable-1), [IEquatable\<FixedList4096Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IComparable\<FixedList4096Bytes\<T>>](https://learn.microsoft.com/dotnet/api/system.icomparable-1)

```csharp
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}@)](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/ctor.md#fixedlist64bytes\(fixedlist128bytest\))   | Initializes and returns an instance of FixedList64Bytes with content copied from another list. |
| [FixedList64Bytes\`1(Unity.Collections.FixedList32Bytes\{\`0}@)](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/ctor.md#fixedlist64bytes\(fixedlist32bytest\))     | Initializes and returns an instance of FixedList64Bytes with content copied from another list. |
| [FixedList64Bytes\`1(Unity.Collections.FixedList4096Bytes\{\`0}@)](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/ctor.md#fixedlist64bytes\(fixedlist4096bytest\)) | Initializes and returns an instance of FixedList64Bytes with content copied from another list. |
| [FixedList64Bytes\`1(Unity.Collections.FixedList512Bytes\{\`0}@)](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/ctor.md#fixedlist64bytes\(fixedlist512bytest\))   | Initializes and returns an instance of FixedList64Bytes with content copied from another list. |

## Properties

| Property                                                                                    | Description                                       |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [Capacity](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/capacity.md) | The number of elements that can fit in this list. |
| [IsEmpty](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/isempty.md)   | Whether this list is empty.                       |
| [this\[\]](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/item.md)     | The element at a given index.                     |
| [Length](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/length.md)     | The current number of items in this list.         |

## Methods

| Method                                                                                                                    | Description                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [Add](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/add.md)                                         | Appends an element to the end of this list. Increments the length by 1.                                          |
| [AddNoResize](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/addnoresize.md)                         | Appends an element to the end of this list. Increments the length by 1.                                          |
| [AddRange](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/addrange.md)                               | Copies elements from a ReadOnlySpan to the end of this list.                                                     |
| [AddRangeNoResize](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/addrangenoresize.md)               | Copies elements from a ReadOnlySpan to the end of this list.                                                     |
| [AddReplicate](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/addreplicate.md)                       | Appends value count times to the end of this list.                                                               |
| [AsReadOnlySpan](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/asreadonlyspan.md)                   | Returns ReadOnlySpan\\\<T\\> view of this container.                                                             |
| [AsSpan](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/asspan.md)                                   | Returns Span\\\<T\\> view of this container.                                                                     |
| [Clear](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/clear.md)                                     | Sets the length to 0.                                                                                            |
| [CompareTo](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/compareto.md)                             | Returns a number denoting whether this list should be placed before or after another list in a sort.             |
| [ElementAt](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/elementat.md)                             | Returns the element at a given index.                                                                            |
| [Equals](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/equals.md)                                   | Returns true if the list is equal to an object.                                                                  |
| [GetEnumerator](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/getenumerator.md)                     | Returns an enumerator for iterating over the elements of this list.                                              |
| [GetHashCode](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/gethashcode.md)                         | Returns the hash code of this list.                                                                              |
| [GetUnsafePtr](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/getunsafeptr.md)                       | Get a pointer to the data.                                                                                       |
| [GetUnsafeReadOnlyPtr](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/getunsafereadonlyptr.md)       | Get a pointer to the data.                                                                                       |
| [Insert](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/insert.md)                                   | Inserts a single element at an index. Increments the length by 1.                                                |
| [InsertRange](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/insertrange.md)                         | Shifts elements toward the end of this list, increasing its length.                                              |
| [InsertRangeWithBeginEnd](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/insertrangewithbeginend.md) | Shifts elements toward the end of this list, increasing its length.                                              |
| [RemoveAt](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/removeat.md)                               | Removes the element at an index. Shifts everything above the index down by one and decrements the length by 1.   |
| [RemoveAtSwapBack](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/removeatswapback.md)               | Copies the last element of this list to an index. Decrements the length by 1.                                    |
| [RemoveRange](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/removerange.md)                         | Removes "N" elements of a range. Shifts everything above the range down by "N" and decrements the length by "N". |
| [RemoveRangeSwapBack](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/removerangeswapback.md)         | Copies the last "N" elements of this list to a range in this list. Decrements the length by "N".                 |
| [ToArray](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/toarray.md)                                 | Returns a managed array that is a copy of this list.                                                             |
| [ToNativeArray](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/tonativearray.md)                     | Returns an array that is a copy of this list.                                                                    |

## Operators

| Operator                                                                                            | Description                            |
| --------------------------------------------------------------------------------------------------- | -------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/op-equality.md)   | Returns true if two lists are equal.   |
| [operator !=](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/op-inequality.md) | Returns true if two lists are unequal. |

## Structs

| Struct                                                                                                               | Description                                                    |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [FixedList64Bytes\<T>.Enumerator](/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1/enumerator.md) | An enumerator over the elements of a FixedList64Bytes\\\<T\\>. |
