# AppendBufferEntityPatches(BufferEntityPatchInfo*, EntityOffsetInfo*, int, int, int, int)

> Adds EntityRemapUtility.BufferEntityPatchInfo elements for each of the input offsets.

## Definition

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

```csharp
public static EntityRemapUtility.BufferEntityPatchInfo* AppendBufferEntityPatches(EntityRemapUtility.BufferEntityPatchInfo* patches, TypeManager.EntityOffsetInfo* offsets, int offsetCount, int bufferBaseOffset, int bufferStride, int elementStride)
```

### Parameters

**** (\[BufferEntityPatchInfo\*]\(/engine/7000.0/script-reference/unity/entities/entityremaputility/bufferentitypatchinfo)): The patch array,**** (\[EntityOffsetInfo\*]\(/engine/7000.0/script-reference/unity/entities/typemanager/entityoffsetinfo)): The offset array.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of offsets in the array.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The offset within chunk where first buffer header can be found.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The stride between adjacent buffers that need patching.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The stride between adjacent buffer elements.

### Returns

| Type                                                                                                                  | Description                                                     |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [BufferEntityPatchInfo\*](/engine/7000.0/script-reference/unity/entities/entityremaputility/bufferentitypatchinfo.md) | Returns a pointer to the next free slot in the `patches` array. |
