Struct UnsafePtrList<T>.ReadOnly
A read only for an UnsafePtrList<T>.
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: solution.dll
Syntax
public struct UnsafePtrList<T>.ReadOnly
Remarks
Use AsReadOnly() to create a read only for a list.
Fields
| Name | Description |
|---|---|
| Length | The number of elements. |
| Ptr | The internal buffer of the list. |
Methods
| Name | Description |
|---|---|
| Contains(void*) | Returns true if the list contains at least one occurrence of a specific pointer. |
| IndexOf(void*) | Returns the index of the first occurrence of a specific pointer in the list. |