Struct UnsafePtrList<T>.ParallelReader
A parallel reader for an UnsafePtrList<T>.
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: Unity.Collections.dll
Syntax
public struct UnsafePtrList<T>.ParallelReaderRemarks
Use AsParallelReader() to create a parallel reader for a list.
Fields
Length
The number of elements.
Declaration
public readonly int LengthField Value
| Type | Description | 
|---|---|
| int | 
Ptr
The internal buffer of the list.
Declaration
[NativeDisableUnsafePtrRestriction]
public readonly T** PtrField Value
| Type | Description | 
|---|---|
| T** | 
Methods
Contains(void*)
Returns true if the list contains at least one occurrence of a specific pointer.
Declaration
public bool Contains(void* ptr)Parameters
| Type | Name | Description | 
|---|---|---|
| void* | ptr | The pointer to search for in the list. | 
Returns
| Type | Description | 
|---|---|
| bool | True if the list contains at least one occurrence of the pointer. | 
IndexOf(void*)
Returns the index of the first occurrence of a specific pointer in the list.
Declaration
public int IndexOf(void* ptr)Parameters
| Type | Name | Description | 
|---|---|---|
| void* | ptr | The pointer to search for in the list. | 
Returns
| Type | Description | 
|---|---|
| int | The index of the first occurrence of the pointer. Returns -1 if it is not found in the list. |