# Add

> Adds a pointer to the end of the list.

## Definition

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

## Add(IntPtr)

Adds a pointer to the end of the list.

```csharp
public void Add(in nint value)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The pointer to add to the end of this list.

### Remarks

Increments the length by 1. Increases the capacity if necessary.

## Add(void\*)

Adds a pointer to the end of the list.

```csharp
public void Add(void* value)
```

### Parameters

**** (\[void\*]\(https\://learn.microsoft.com/dotnet/api/system.void)): The pointer to add to the end of this list.

### Remarks

Increments the length by 1. Increases the capacity if necessary.
