ReadOnlySpan<T> Struct (System)

BinarySearch<T,TComparable>(ReadOnlySpan<T>, TComparable)

Searches an entire sorted ReadOnlySpan<T> for a value using the specified TComparable generic type.

BinarySearch<T,TComparer>(ReadOnlySpan<T>, T, TComparer)

Searches an entire sorted ReadOnlySpan<T> for a specified value using the specified TComparer generic type.

BinarySearch<T>(ReadOnlySpan<T>, IComparable<T>)

Searches an entire sorted ReadOnlySpan<T> for a value using the specified IComparable<T> generic interface.

CommonPrefixLength<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Determines the length of any common prefix shared between span and other.

CommonPrefixLength<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Finds the length of any common prefix shared between span and other.

Contains<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Searches for the specified value and returns true if found. If not found, returns false.

Contains<T>(ReadOnlySpan<T>, T)

Indicates whether a specified value is found in a read-only span.

ContainsAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Searches for any occurrence of any of the specified values and returns true if found. If not found, returns false.

ContainsAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches for an occurrence of any of the specified values.

ContainsAny<T>(ReadOnlySpan<T>, SearchValues<T>)

Searches for an occurrence of any of the specified values.

ContainsAny<T>(ReadOnlySpan<T>, T, T, IEqualityComparer<T>)

Searches for an occurrence of either of the specified values.

ContainsAny<T>(ReadOnlySpan<T>, T, T, T, IEqualityComparer<T>)

Searches for any occurrence of the specified values in the specified span.

ContainsAny<T>(ReadOnlySpan<T>, T, T, T)

Searches for an occurrence of value0, value1, or value2 in the specified span.

ContainsAny<T>(ReadOnlySpan<T>, T, T)

Searches for an occurrence of value0 or value1.

ContainsAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Searches the specified span for any value other than the specified values.

ContainsAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches the specified span for any value other than the specified values.

ContainsAnyExcept<T>(ReadOnlySpan<T>, SearchValues<T>)

Searches the specified span for any value other than the specified values.

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Searches the specified span for any value other than value.

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T, IEqualityComparer<T>)

Searches for any value other than value0 or value1.

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T, T, IEqualityComparer<T>)

Searches for any value other than value0, value1, or value2.

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T, T)

Searches for any value other than value0, value1, or value2.

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T)

Searches the specified span for any value other than value0 or value1.

ContainsAnyExcept<T>(ReadOnlySpan<T>, T)

Searches the specified span for any value other than the specified value.

ContainsAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

Searches for any value outside of the range between lowInclusive and highInclusive, inclusive.

ContainsAnyInRange<T>(ReadOnlySpan<T>, T, T)

Searches for any value in the range between lowInclusive and highInclusive, inclusive.

Count<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Counts the number of times the specified value occurs in the span.

Count<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Counts the number of times value occurs in span.

Count<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Counts the number of times the specified value occurs in the span.

Count<T>(ReadOnlySpan<T>, T)

Counts the number of times the specified value occurs in the span.

CountAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Counts the number of times any of the specified values occurs in the span.

CountAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Counts the number of times any of the specified values occurs in the span.

CountAny<T>(ReadOnlySpan<T>, SearchValues<T>)

Counts the number of times any of the specified values occurs in the span.

EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Determines whether the specified sequence appears at the end of the read-only span.

EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determines whether the specified sequence appears at the end of a read-only span.

EndsWith<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Determines whether the specified value appears at the end of the span.

EndsWith<T>(ReadOnlySpan<T>, T)

Determines whether the specified value appears at the end of the span.

IndexOf<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Searches for the specified sequence and returns the index of its first occurrence.

IndexOf<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches for the specified sequence and returns the index of its first occurrence.

IndexOf<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Searches for the specified value and returns the index of its first occurrence.

IndexOf<T>(ReadOnlySpan<T>, T)

Searches for the specified value and returns the index of its first occurrence.

IndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Searches for the first index of any of the specified values.

IndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches for the first index of any of the specified values.

IndexOfAny<T>(ReadOnlySpan<T>, SearchValues<T>)

Searches for the first index of any of the specified values.

IndexOfAny<T>(ReadOnlySpan<T>, T, T, IEqualityComparer<T>)

Searches for the first index of any of the specified values.

IndexOfAny<T>(ReadOnlySpan<T>, T, T, T, IEqualityComparer<T>)

Searches for the first index of any of the specified values.

IndexOfAny<T>(ReadOnlySpan<T>, T, T, T)

Searches for the first index of any of the specified values.

IndexOfAny<T>(ReadOnlySpan<T>, T, T)

Searches for the first index of either of the specified values.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Searches for the first index of any value other than the specified values.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches for the first index of any value other than the specified values.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, SearchValues<T>)

Searches for the first index of any value other than the specified values.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Searches for the first index of any value other than the specified value.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T, IEqualityComparer<T>)

Searches for the first index of any value other than the two specified values.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T, T, IEqualityComparer<T>)

Searches for the first index of any value other than value0, value1, or value2.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T, T)

Searches for the first index of any value other than value0, value1, or value2.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T)

Searches for the first index of any value other than the two specified values.

IndexOfAnyExcept<T>(ReadOnlySpan<T>, T)

Searches for the first index of any value other than the specified value.

IndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

Searches for the first index of any value outside of the range between lowInclusive and highInclusive, inclusive.

IndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T)

Searches for the first index of any value in the range between lowInclusive and highInclusive, inclusive.

LastIndexOf<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Searches for the specified sequence and returns the index of its last occurrence. If not found, returns -1.

LastIndexOf<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches for the specified sequence and returns the index of its last occurrence.

LastIndexOf<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Searches for the specified value and returns the index of its last occurrence. If not found, returns -1.

LastIndexOf<T>(ReadOnlySpan<T>, T)

Searches for the specified value and returns the index of its last occurrence.

LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Searches for the last index of any of the specified values.

LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches for the last index of any of the specified values.

LastIndexOfAny<T>(ReadOnlySpan<T>, SearchValues<T>)

Searches for the last index of any of the specified values.

LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, IEqualityComparer<T>)

Searches for the last index of any of the specified values.

LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T, IEqualityComparer<T>)

Searches for the last index of any of the specified values.

LastIndexOfAny<T>(ReadOnlySpan<T>, T, T, T)

Searches for the last index of any of the specified values.

LastIndexOfAny<T>(ReadOnlySpan<T>, T, T)

Searches for the last index of any of the specified values.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Searches for the last index of any value other than the specified values.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Searches for the last index of any value other than the specified values.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, SearchValues<T>)

Searches for the last index of any value other than the specified values.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Searches for the last index of any value other than the specified value.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T, IEqualityComparer<T>)

Searches for the last index of any value other than the specified value0 or value1.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T, T, IEqualityComparer<T>)

Searches for the last index of any value other than the specified value0, value1, or value2.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T, T)

Searches for the last index of any value other than the specified value0, value1, or value2.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T)

Searches for the last index of any value other than the specified value0 or value1.

LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T)

Searches for the last index of any value other than the specified value.

LastIndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

Searches for the last index of any value outside of the range between lowInclusive and highInclusive, inclusive.

LastIndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T)

Searches for the last index of any value in the range between lowInclusive and highInclusive, inclusive.

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Int32)

Determines whether two read-only sequences overlap in memory and outputs the element offset.

Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determines whether two read-only sequences overlap in memory.

Replace<T>(ReadOnlySpan<T>, Span<T>, T, T, IEqualityComparer<T>)

Copies source to destination, replacing all occurrences of oldValue with newValue.

Replace<T>(ReadOnlySpan<T>, Span<T>, T, T)

Copies source to destination, replacing all occurrences of oldValue with newValue.

ReplaceAny<T>(ReadOnlySpan<T>, Span<T>, SearchValues<T>, T)

Copies source to destination, replacing all occurrences of any of the elements in values with newValue.

ReplaceAnyExcept<T>(ReadOnlySpan<T>, Span<T>, SearchValues<T>, T)

Copies source to destination, replacing all occurrences of any of the elements other than those in values with newValue.

SequenceCompareTo<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IComparer<T>)

Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).

SequenceCompareTo<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determines the relative order of two read-only sequences by comparing their elements using IComparable{T}.CompareTo(T).

SequenceEqual<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Determines whether two sequences are equal by comparing the elements using an IEqualityComparer<T>.

SequenceEqual<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determines whether two read-only sequences are equal by comparing the elements using IEquatable{T}.Equals(T).

Split<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Returns a type that allows for enumeration of each element within a split span using the provided separator span.

Split<T>(ReadOnlySpan<T>, T)

Returns a type that allows for enumeration of each element within a split span using the provided separator character.

SplitAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Returns a type that allows for enumeration of each element within a split span using any of the provided elements.

SplitAny<T>(ReadOnlySpan<T>, SearchValues<T>)

Returns a type that allows for enumeration of each element within a split span using the provided separator characters.

StartsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>)

Determines whether a specified sequence appears at the start of a read-only span.

StartsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determines whether a specified sequence appears at the start of a read-only span.

StartsWith<T>(ReadOnlySpan<T>, T, IEqualityComparer<T>)

Determines whether the specified value appears at the start of the span.

StartsWith<T>(ReadOnlySpan<T>, T)

Determines whether the specified value appears at the start of the span.

ToImmutableArray<T>(ReadOnlySpan<T>)

Produce an immutable array of contents from specified elements.

Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only span.

Trim<T>(ReadOnlySpan<T>, T)

Removes all leading and trailing occurrences of a specified element from a read-only span.

TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Removes all trailing occurrences of a set of elements specified in a read-only span from a read-only span.

TrimEnd<T>(ReadOnlySpan<T>, T)

Removes all trailing occurrences of a specified element from a read-only span.

TrimStart<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Removes all leading occurrences of a set of elements specified in a read-only span from the span.

TrimStart<T>(ReadOnlySpan<T>, T)

Removes all leading occurrences of a specified element from the span.