# JournalBufferReader.TryReadTo(ArcBuffer, byte, bool)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalbufferreader/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalbufferreader/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Journaling/JournalBufferReader.cs#L106)

```csharp
public bool TryReadTo(out ArcBuffer slice, byte delimiter, bool advancePastDelimiter = true)
```

Reads bytes until `delimiter` is found.

### Parameters

- `slice` (`ArcBuffer`): The pinned bytes before the delimiter, if it was found. The caller owns the returned buffer and must dispose it.
- `delimiter` (`byte`): The delimiter to search for.
- `advancePastDelimiter` (`bool`): Whether to advance past the delimiter when it is found.

### Returns

`true` if the delimiter was found; otherwise, `false`.
