# PooledBufferCopier.DeepCopy(PooledBuffer, CopyContext)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.pooledbuffercopier/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.pooledbuffercopier/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ByteArrayCodec.cs#L447)

```csharp
public PooledBuffer DeepCopy(PooledBuffer input, CopyContext context)
```

Creates a deep copy of the provided input.

### Parameters

- `input` (`PooledBuffer`): The input.
- `context` (`CopyContext`): The context.

### Returns

A copy of `input`.
