Table of Contents

Class MemoryAllocator

Namespace
Apache.Arrow.Memory
Assembly
Apache.Arrow.dll
public abstract class MemoryAllocator
Inheritance
MemoryAllocator
Derived
Inherited Members

Constructors

MemoryAllocator(int)

protected MemoryAllocator(int alignment = 64)

Parameters

alignment int

Fields

DefaultAlignment

public const int DefaultAlignment = 64

Field Value

int

Properties

Alignment

protected int Alignment { get; }

Property Value

int

Default

public static Lazy<MemoryAllocator> Default { get; }

Property Value

Lazy<MemoryAllocator>

Statistics

public MemoryAllocator.Stats Statistics { get; }

Property Value

MemoryAllocator.Stats

Methods

Allocate(int)

public IMemoryOwner<byte> Allocate(int length)

Parameters

length int

Returns

IMemoryOwner<byte>

AllocateInternal(int, out int)

protected abstract IMemoryOwner<byte> AllocateInternal(int length, out int bytesAllocated)

Parameters

length int
bytesAllocated int

Returns

IMemoryOwner<byte>