예제 #1
0
 public static int IndexOfAny(this ReadOnlySpan <byte> span, ReadOnlySpan <byte> values)
 {
     return(SpanHelpers.IndexOfAny(ref MemoryMarshal.GetReference(span), span.Length, ref MemoryMarshal.GetReference(values), values.Length));
 }
예제 #2
0
 public static int IndexOfAny(this ReadOnlySpan <byte> span, ReadOnlySpan <byte> values)
 {
     return(SpanHelpers.IndexOfAny(ref span.DangerousGetPinnableReference(), span.Length, ref values.DangerousGetPinnableReference(), values.Length));
 }
예제 #3
0
 public static int IndexOfAny(this ReadOnlySpan <byte> span, byte value0, byte value1, byte value2)
 {
     return(SpanHelpers.IndexOfAny(ref MemoryMarshal.GetReference(span), value0, value1, value2, span.Length));
 }
예제 #4
0
 public static int IndexOfAny(this ReadOnlySpan <byte> span, byte value0, byte value1, byte value2)
 {
     return(SpanHelpers.IndexOfAny(ref span.DangerousGetPinnableReference(), value0, value1, value2, span.Length));
 }