Skip to content

JournalBufferReader.IsNext(ReadOnlySpan<byte>, bool)

IsNext(ReadOnlySpan<byte>, bool)

View source
public bool IsNext(ReadOnlySpan<byte> next, bool advancePast = false)
Checks whether the next bytes match next.

Parameters

nextReadOnlySpan<byte>
The bytes to compare to the next bytes.
advancePastbool
Whether to advance past the bytes if they match.

Returns

true if the next bytes match; otherwise, false.