<PackageReference Include="System.Memory" Version="4.5.4" />

System.Memory<T>

public struct Memory<T>
namespace System { public readonly struct Memory<T> { public static Memory<T> Empty { get; } public int Length { get; } public bool IsEmpty { get; } public Span<T> Span { get; } public Memory(T[] array); public Memory(T[] array, int start, int length); public static implicit operator Memory<T>(T[] array); public static implicit operator Memory<T>(ArraySegment<T> segment); public static implicit operator ReadOnlyMemory<T>(Memory<T> memory); public Memory<T> Slice(int start); public Memory<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(Memory<T> other); } }