Method CopyFromReadOnlyList
CopyFromReadOnlyList<T>(IReadOnlyList<T>, NativeArray<T>)
Copies the contents of source into the NativeArray destination.
The lengths of both collections must match.
Declaration
public static void CopyFromReadOnlyList<T>(IReadOnlyList<T> source, NativeArray<T> destination) where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<T> | source | The |
| NativeArray<T> | destination | The |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when there is a mismatch between |