# CopyFrom

> Copies all the elements from the specified native array into this dynamic buffer.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## CopyFrom(NativeArray\<T>)

Copies all the elements from the specified native array into this dynamic buffer.

```csharp
public void CopyFrom(NativeArray<T> v)
```

### Parameters

**** (\[NativeArray\<T>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): The native array containing the elements to copy.

## CopyFrom(NativeSlice\<T>)

Copies all the elements from the specified native slice into this dynamic buffer.

```csharp
public void CopyFrom(NativeSlice<T> v)
```

### Parameters

**** (\[NativeSlice\<T>]\(/engine/7000.0/script-reference/unity/collections/nativeslice1)): The native slice containing the elements to copy.

## CopyFrom(DynamicBuffer\<T>)

Copies all the elements from another dynamic buffer.

```csharp
public void CopyFrom(DynamicBuffer<T> v)
```

### Parameters

**** (\[DynamicBuffer\<T>]\(/engine/7000.0/script-reference/unity/entities/dynamicbuffer1)): The dynamic buffer containing the elements to copy.

## CopyFrom(\`0\[])

Copies all the elements from an array.

```csharp
public void CopyFrom(T[] v)
```

### Parameters

**** (\[\<T>\[]]\(./)): A C# array containing the elements to copy.
