12[DebuggerDisplay(
"{ToString(),raw}")]
34 ref T ptr = ref
Unsafe.NullRef<T>();
39 if (typeof(T) == typeof(
char) && @
object.GetType() == typeof(
string))
41 ptr = ref
Unsafe.As<char, T>(ref
Unsafe.As<
string>(@object).GetRawStringData());
55 nuint num = (uint)
_index & 0x7FFFFFFFu;
57 if ((ulong)((long)num + (
long)(uint)
length2) > (ulong)(uint)
length)
93 if ((ulong)((
long)(uint)
start + (
long)(uint)
length) > (ulong)(uint)
array.Length)
122 if (typeof(T) == typeof(
char))
130 return $
"System.ReadOnlyMemory<{typeof(T).Name}>[{_length}]";
168 if (typeof(T) == typeof(
char) && @
object is
string text)
195 public override bool Equals([NotNullWhen(
true)]
object?
obj)
static int GetHashCode(object? o)
static unsafe bool ObjectHasComponentSize(object obj)
static unsafe ref byte GetArrayDataReference(Array array)
static void ThrowArgumentOutOfRangeException(System.ExceptionArgument argument)
override string ToString()
bool Equals(ReadOnlyMemory< T > other)
object GetObjectStartLength(out int start, out int length)
ReadOnlyMemory(T[]? array, int start, int length)
ReadOnlyMemory(object obj, int start, int length)
void CopyTo(Memory< T > destination)
const int RemoveFlagsBitMask
override int GetHashCode()
ReadOnlyMemory< T > Slice(int start)
ReadOnlyMemory(T[]? array)
bool TryCopyTo(Memory< T > destination)
unsafe MemoryHandle Pin()
ReadOnlyMemory< T > Slice(int start, int length)
override bool Equals([NotNullWhen(true)] object? obj)
static GCHandle Alloc(object? value)
void CopyTo(Span< T > destination)
override string ToString()
bool TryCopyTo(Span< T > destination)