# SegmentBuilder.Append(ArraySegment&lt;byte&gt;, int, ReadOnlySpan&lt;byte&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.segmentbuilder/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.segmentbuilder/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/SegmentBuilder.cs#L33-L47)

```csharp
public static void Append(ArraySegment<byte> segment, ref int writerOffset, ReadOnlySpan<byte> bytes)
```

Appends a `System.ReadOnlyMemory-1` of bytes to the end of the segment

### Parameters

- `segment` (`ArraySegment<byte>`)
- `writerOffset` (`int`)
- `bytes` (`ReadOnlySpan<byte>`)
