Class MemoryAllocator
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
Properties
Alignment
protected int Alignment { get; }
Property Value
Default
public static Lazy<MemoryAllocator> Default { get; }
Property Value
Statistics
public MemoryAllocator.Stats Statistics { get; }
Property Value
Methods
Allocate(int)
public IMemoryOwner<byte> Allocate(int length)
Parameters
length
int
Returns
AllocateInternal(int, out int)
protected abstract IMemoryOwner<byte> AllocateInternal(int length, out int bytesAllocated)