A read only for an UnsafeList<T>.
Use UnsafeList<T0>.AsReadOnly to create a read only for a list.
| Property | Description |
|---|---|
| IsCreated | Whether this list has been allocated (and not yet deallocated). |
| IsEmpty | Whether the list is empty. |
| Length | The number of elements. |
| Ptr | The internal buffer of the list. |
| 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. |