# ReadOnlyMemoryOfByteCopier.DeepCopy(ReadOnlyMemory&lt;byte&gt;, CopyContext)

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

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

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

Copies the input.

### Parameters

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

### Returns

A copy of the input.
