# Create

> Returns a new list of pointers.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## Create(\`0\*\*, int)

Returns a new list of pointers.

```csharp
public static UnsafePtrList<T>* Create(T** ptr, int length)
```

### Parameters

**** (\[\<T>\*\*]\(./)): An existing pointer array to set as the internal buffer.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The length.

### Returns

| Type                                                                                                       | Description                |
| ---------------------------------------------------------------------------------------------------------- | -------------------------- |
| [UnsafePtrList\<T>\*](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeptrlist1.md) | A pointer to the new list. |

## Create(int, AllocatorHandle, NativeArrayOptions)

Returns a new list of pointers.

```csharp
public static UnsafePtrList<T>* Create(int initialCapacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.UninitializedMemory)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The initial capacity of the list.**** (\[AllocatorHandle]\(/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle)): The allocator to use.**** (\[NativeArrayOptions]\(/engine/6000.7/script-reference/unity/collections/nativearrayoptions)): Whether newly allocated bytes should be zeroed out.

### Returns

| Type                                                                                                       | Description                |
| ---------------------------------------------------------------------------------------------------------- | -------------------------- |
| [UnsafePtrList\<T>\*](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeptrlist1.md) | A pointer to the new list. |
