SequenceReader<T>.AdvancePastAny Method

Definition

Overloads

AdvancePastAny(ReadOnlySpan<T>)

Skips consecutive instances of any of the specified values.

AdvancePastAny(T, T)

Advances past consecutive instances of either of two specified values.

AdvancePastAny(T, T, T)

Advances past consecutive instances of any of three specified values.

AdvancePastAny(T, T, T, T)

Advances past consecutive instances of any of four specified values.

AdvancePastAny(ReadOnlySpan<T>)

Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs

Skips consecutive instances of any of the specified values.

public long AdvancePastAny (ReadOnlySpan<T> values);
public long AdvancePastAny (scoped ReadOnlySpan<T> values);

Parameters

values
ReadOnlySpan<T>

The values to be skipped.

Returns

The number of positions the reader has advanced.

Applies to

.NET 9 och andra versioner
Produkt Versioner
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1

AdvancePastAny(T, T)

Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs

Advances past consecutive instances of either of two specified values.

public long AdvancePastAny (T value0, T value1);

Parameters

value0
T

The first value to skip.

value1
T

The second value to skip.

Returns

The number of positions the reader has advanced.

Applies to

.NET 9 och andra versioner
Produkt Versioner
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1

AdvancePastAny(T, T, T)

Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs

Advances past consecutive instances of any of three specified values.

public long AdvancePastAny (T value0, T value1, T value2);

Parameters

value0
T

The first value to skip.

value1
T

The second value to skip.

value2
T

The third value to skip.

Returns

The number of positions the reader has advanced.

Applies to

.NET 9 och andra versioner
Produkt Versioner
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1

AdvancePastAny(T, T, T, T)

Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs
Source:
SequenceReader.Search.cs

Advances past consecutive instances of any of four specified values.

public long AdvancePastAny (T value0, T value1, T value2, T value3);

Parameters

value0
T

The first value to skip.

value1
T

The second value to skip.

value2
T

The third value to skip.

value3
T

The fourth value to skip.

Returns

The number of positions the reader has advanced.

Applies to

.NET 9 och andra versioner
Produkt Versioner
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1