<PackageReference Include="System.Memory" Version="4.5.2-servicing-27114-05" />

System.ReadOnlyMemory<T>

public struct ReadOnlyMemory<T>
namespace System { public readonly struct ReadOnlyMemory<T> { public static ReadOnlyMemory<T> Empty { get; } public int Length { get; } public bool IsEmpty { get; } public ReadOnlySpan<T> Span { get; } public ReadOnlyMemory(T[] array); public ReadOnlyMemory(T[] array, int start, int length); public static implicit operator ReadOnlyMemory<T>(T[] array); public static implicit operator ReadOnlyMemory<T>(ArraySegment<T> segment); public ReadOnlyMemory<T> Slice(int start); public ReadOnlyMemory<T> Slice(int start, int length); public void CopyTo(Memory<T> destination); public bool TryCopyTo(Memory<T> destination); public MemoryHandle Pin(); public T[] ToArray(); public bool Equals(ReadOnlyMemory<T> other); } }