# JournalBufferReader.IsNext(ReadOnlySpan&lt;byte&gt;, 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#L114)

```csharp
public bool IsNext(ReadOnlySpan<byte> next, bool advancePast = false)
```

Checks whether the next bytes match `next`.

### Parameters

- `next` (`ReadOnlySpan<byte>`): The bytes to compare to the next bytes.
- `advancePast` (`bool`): Whether to advance past the bytes if they match.

### Returns

`true` if the next bytes match; otherwise, `false`.
