Click or drag to resize
Ab4d.SharpEngine logo

HeapAllocator Class

Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesHeapAllocator

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class HeapAllocator

The HeapAllocator type exposes the following members.

Constructors
 NameDescription
Public methodHeapAllocator(UInt32, Int32, String)Initializes a new instance of the HeapAllocator class
Public methodHeapAllocator(UInt32, Int32, Int32, String)Initializes a new instance of the HeapAllocator class
Top
Properties
Methods
 NameDescription
Public methodAlloc(Int32, UInt32) Tries to allocate the block of memory with the specified size. When the block is allocated then true is returned and the dataOffset is set to the offset inside the memory block that is behind this HeapAllocator.
Public methodAlloc(UInt32, UInt32) Tries to allocate the block of memory with the specified size. When the block is allocated then true is returned and the dataOffset is set to the offset inside the memory block that is behind this HeapAllocator.
Public methodAlloc(Int32, String, UInt32) Tries to allocate the block of memory with the specified size. When the block is allocated then true is returned and the dataOffset is set to the offset inside the memory block that is behind this HeapAllocator.
Public methodAlloc(UInt32, String, UInt32) Tries to allocate the block of memory with the specified size. When the block is allocated then true is returned and the dataOffset is set to the offset inside the memory block that is behind this HeapAllocator.
Public methodDumpReport 
Public methodFree 
Public methodGetMemoryBlockInfo Returns size and name (can be null) of the allocated memory block at the specified offset. If block at that offset is not found, then returned size is 0 and name is null.
Public methodGetReportString 
Public methodGetUsedBlockNames 
Top
Fields
 NameDescription
Public fieldAlignment 
Public fieldStatic memberMinAlignment 
Public fieldName 
Public fieldSize Size of this HeapAllocator. Size is limited by uint size that is 4 GB (the same is the Vulkan's maxStorageBufferRange: 4294967295)
Top
See Also