# JournalBufferReader.TryReadTo(ArcBuffer, byte, bool)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.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`.
