Struct HeapAllocator
Syntax
public struct HeapAllocator : IDisposable
Constructors
HeapAllocator(UInt64, UInt32)
Declaration
public HeapAllocator(ulong size = null, uint minimumAlignment = null)
Parameters
Fields
AlignmentBits
Declaration
public const int AlignmentBits = null
Field Value
MaxAlignmentLog2
Declaration
public const int MaxAlignmentLog2 = null
Field Value
Properties
Empty
Declaration
public readonly bool Empty { get; }
Property Value
FreeSpace
Declaration
public readonly ulong FreeSpace { get; }
Property Value
Full
Declaration
public readonly bool Full { get; }
Property Value
IsCreated
Declaration
public readonly bool IsCreated { get; }
Property Value
MinimumAlignment
Declaration
public readonly uint MinimumAlignment { get; }
Property Value
OnePastHighestUsedAddress
Declaration
public readonly ulong OnePastHighestUsedAddress { get; }
Property Value
Size
Declaration
public readonly ulong Size { get; }
Property Value
UsedSpace
Declaration
public readonly ulong UsedSpace { get; }
Property Value
Methods
Allocate(UInt64, UInt32)
Declaration
public HeapBlock Allocate(ulong size, uint alignment = null)
Parameters
Returns
Clear()
Declaration
DebugValidateInternalState()
Declaration
public void DebugValidateInternalState()
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