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>)

Skips consecutive instances of any of the specified values.

public:
 long AdvancePastAny(ReadOnlySpan<T> values);
public long AdvancePastAny (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

Int64

The number of positions the reader has advanced.

Applies to

AdvancePastAny(T, T)

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

Int64

The number of positions the reader has advanced.

Applies to

AdvancePastAny(T, T, T)

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

Int64

The number of positions the reader has advanced.

Applies to

AdvancePastAny(T, T, T, T)

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

Int64

The number of positions the reader has advanced.

Applies to