SequenceReader<T>.AdvancePastAny Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
AdvancePastAny(ReadOnlySpan<T>) |
Skips consecutive instances of any of the specified |
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. |
- 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 (ReadOnlySpan<T> values);
public long AdvancePastAny (scoped ReadOnlySpan<T> values);
member this.AdvancePastAny : ReadOnlySpan<'T (requires 'T : struct)> -> int64
Public Function AdvancePastAny (values As ReadOnlySpan(Of T)) As Long
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 |
- 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);
public long AdvancePastAny (T value0, T value1);
member this.AdvancePastAny : 'T * 'T -> int64
Public Function AdvancePastAny (value0 As T, value1 As T) As Long
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 |
- 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);
public long AdvancePastAny (T value0, T value1, T value2);
member this.AdvancePastAny : 'T * 'T * 'T -> int64
Public Function AdvancePastAny (value0 As T, value1 As T, value2 As T) As Long
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 |
- 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);
public long AdvancePastAny (T value0, T value1, T value2, T value3);
member this.AdvancePastAny : 'T * 'T * 'T * 'T -> int64
Public Function AdvancePastAny (value0 As T, value1 As T, value2 As T, value3 As T) As Long
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 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: