# NativeArraySharedInt(NativeArray<int>, AllocatorHandle)

> Construct a NativeArraySharedInt struct from a NativeArray

## Definition

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

```csharp
public NativeArraySharedInt(NativeArray<int> sourceBuffer, AllocatorManager.AllocatorHandle allocator)
```

### Parameters

**** (\[NativeArray\<int>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): Original source values.**** (\[AllocatorHandle]\(/engine/7000.0/script-reference/unity/collections/allocatormanager/allocatorhandle)): The NativeArray allocation type.
