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

IPinnable

public interface IPinnable
Provides a mechanism for pinning and unpinning objects to prevent the GC from moving them.
namespace System.Buffers { public interface IPinnable { MemoryHandle Pin(int elementIndex); void Unpin(); } }