[API Proposal]: Add SearchValues Overloads to SequenceReader #114451
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.Buffers
untriaged
New issue has not been triaged by the area owner
Background and motivation
SequenceReader
has methods that take aReadOnlySpan
of delimiter values and advances/reads until finding one of those values. WithSearchValues
addition in .NET 8, a new set of overloads is a natural addition. They should be more performant than using the existing overloads while being no more complicated for developers to use (and even easier than usingAdvancePastAny(T value0, T value1, T value2, T value3)
).API Proposal
API Usage
Alternative Designs
We could also add extension methods for
SequenceReader<char>
andSearchValues<string>
.Risks
No response
The text was updated successfully, but these errors were encountered: