# ArraySegmentOfByteCopier Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.arraysegmentofbytecopier/)

## DeepCopy(ArraySegment&lt;byte&gt;, CopyContext) {#deepcopy-system-arraysegment-byte-orleans-serialization-cloning-copycontext-10608ec1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.arraysegmentofbytecopier/methods/deepcopy-system-arraysegment-byte-orleans-serialization-cloning-copycontext-10608ec1/)

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

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

Copies the input.

### Parameters

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

### Returns

A copy of the input.
