Function SpanExtensions.IndexOf

IndexOf<T> (thisUnsafeSpan<T> span, T value)

Returns the index of the first occurrence of a value in the span.

Public Static
int IndexOf<T> (

thisUnsafeSpan<T>

span

T

value

)

Returns the index of the first occurrence of a value in the span.

If the value is not found, -1 is returned.