DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="3.2.1" />

 MemoryAllocator<T>

public sealed delegate MemoryAllocator<T> : MulticastDelegate
Represents memory allocator.
using System.Runtime.CompilerServices; namespace DotNext.Buffers { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] public delegate MemoryOwner<T> MemoryAllocator<[System.Runtime.CompilerServices.Nullable(2)] T> (int length); }