UnsafeList<T>.ReadOnly
A read only for an UnsafeList\<T\>.
Read time 1 minuteLast updated 19 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
- Implements: IEnumerable<T>, IEnumerable
public struct UnsafeList<T>.ReadOnly : IEnumerable<T>, IEnumerable
Remarks
Use UnsafeList<T>.AsReadOnly to create a read only for a list.
Fields
Properties
Property | Description |
|---|---|
| IsCreated | Whether this list has been allocated (and not yet deallocated). |
| IsEmpty | Whether the list is empty. |
Methods
Method | Description |
|---|---|
| AsReadOnlySpan | Returns ReadOnlySpan\<T\> view of this container. |
| GetEnumerator | Returns an enumerator over the elements of the list. |
| GetUnsafeReadOnlyPtr | Get a pointer to the data. |