Struct HeapAllocator
Syntax
public struct HeapAllocator : IDisposable
Constructors
HeapAllocator(UInt64, UInt32)
Declaration
public HeapAllocator(ulong size = 0UL, uint minimumAlignment = 1U)
Parameters
Fields
AlignmentBits
Declaration
public const int AlignmentBits = 6
Field Value
MaxAlignmentLog2
Declaration
public const int MaxAlignmentLog2 = 63
Field Value
Properties
Empty
Declaration
public bool Empty { get; }
Property Value
FreeSpace
Declaration
public ulong FreeSpace { get; }
Property Value
Full
Declaration
public bool Full { get; }
Property Value
IsCreated
Declaration
public bool IsCreated { get; }
Property Value
MinimumAlignment
Declaration
public uint MinimumAlignment { get; }
Property Value
Size
Declaration
public ulong Size { get; }
Property Value
UsedSpace
Declaration
public ulong UsedSpace { get; }
Property Value
Methods
Allocate(UInt64, UInt32)
Declaration
public HeapBlock Allocate(ulong size, uint alignment = 1U)
Parameters
Returns
Clear()
Declaration
Dispose()
Declaration
Release(HeapBlock)
Declaration
public void Release(HeapBlock block)
Parameters
Resize(UInt64)
Declaration
public bool Resize(ulong newSize)
Parameters
Type |
Name |
Description |
UInt64 |
newSize |
|
Returns