Apache.Arrow.Memory.MemoryAllocator
namespace Apache.Arrow.Memory
{
public abstract class MemoryAllocator
{
public class Stats
{
public long Allocations { get; }
public long BytesAllocated { get; }
public Stats();
}
public const int DefaultAlignment = 64;
public static Lazy<MemoryAllocator> Default { get; }
public Stats Statistics { get; }
protected int Alignment { get; }
protected MemoryAllocator(int alignment = 64);
public IMemoryOwner<byte> Allocate(int length);
protected abstract IMemoryOwner<byte> AllocateInternal(int length, out int bytesAllocated);
}
}