# MemoryOfByteCopier.DeepCopy(Memory&lt;byte&gt;, CopyContext)

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

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

```csharp
public static Memory<byte> DeepCopy(Memory<byte> input, CopyContext copyContext)
```

Copies the input.

### Parameters

- `input` (`Memory<byte>`): The input.
- `copyContext` (`CopyContext`): The copy context.

### Returns

A copy of the input.
