11[DebuggerDisplay(
"{ToString(),raw}")]
41 if (num <
_span.Length)
54 public ref readonly T
this[
int index]
113 if ((ulong)((
long)(uint)
start + (
long)(uint)
length) > (ulong)(uint)
array.Length)
122 [CLSCompliant(
false)]
146 return !(left == right);
149 [Obsolete(
"Equals() on ReadOnlySpan has will always throw an exception. Use the equality operator instead.")]
156 [Obsolete(
"GetHashCode() on ReadOnlySpan will always throw an exception.")]
181 ref T result = ref
Unsafe.NullRef<T>();
224 if (typeof(T) == typeof(
char))
228 return $
"System.ReadOnlySpan<{typeof(T).Name}>[{_length}]";
255 return Array.Empty<T>();
static void Memmove(ref byte dest, ref byte src, nuint len)
static unsafe ref byte GetArrayDataReference(Array array)
static string NotSupported_CannotCallGetHashCodeOnSpan
static string NotSupported_CannotCallEqualsOnSpan
static void ThrowIndexOutOfRangeException()
static void ThrowArgumentOutOfRangeException(System.ExceptionArgument argument)
static void ThrowInvalidTypeWithPointersNotSupported(Type targetType)
static void ThrowArgumentException_DestinationTooShort()
Enumerator(ReadOnlySpan< T > span)
readonly ReadOnlySpan< T > _span
ref readonly T GetPinnableReference()
static bool operator==(ReadOnlySpan< T > left, ReadOnlySpan< T > right)
Enumerator GetEnumerator()
bool TryCopyTo(Span< T > destination)
unsafe ReadOnlySpan(void *pointer, int length)
ReadOnlySpan(ref T ptr, int length)
void CopyTo(Span< T > destination)
ReadOnlySpan< T > Slice(int start, int length)
override bool Equals(object? obj)
override int GetHashCode()
ReadOnlySpan(T[]? array, int start, int length)
readonly ByReference< T > _pointer
ReadOnlySpan< T > Slice(int start)
static bool operator!=(ReadOnlySpan< T > left, ReadOnlySpan< T > right)
override string ToString()