Struct Extensions_Collections.CopyToAndConvertJob_Reverse<TSource, TTarget>
Copies items from one collection to another, converting values while copying. Copies data in reverse, so the last item in the source collection will be copied to the first item in the target collection.
Implements
IJobParallelFor
Inherited Members
Namespace: Fwt.Core
Assembly: fwt.core.dll
Syntax
public struct Extensions_Collections.CopyToAndConvertJob_Reverse<TSource, TTarget> : IJobParallelFor where TSource : unmanaged, IConvertableFrom<TSource, TTarget> where TTarget : unmanaged
Type Parameters
| Name | Description |
|---|---|
| TSource | Type of item in a source collection |
| TTarget | Type of item in a target collection |
Fields
Source
Source collection to copy data from
Declaration
[ReadOnly]
public NativeArray<TSource> Source
Field Value
| Type | Description |
|---|---|
| NativeArray<TSource> |
Target
Target collection to copy data to
Declaration
[WriteOnly]
public NativeArray<TTarget> Target
Field Value
| Type | Description |
|---|---|
| NativeArray<TTarget> |
Methods
Execute(int)
Performs work against a specific iteration index.
Declaration
public void Execute(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index of the Parallel for loop at which to perform work. |
Implements
Unity.Jobs.IJobParallelFor