# ArcBufferReader.IsNext(ReadOnlySpan&lt;byte&gt;, bool)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbufferreader/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbufferreader/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/ArcBufferWriter.cs#L1157-L1175)

```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`.
