IsNext(ReadOnlySpan<byte>, bool)
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.