Heap |
public class HeapAllocator
The HeapAllocator type exposes the following members.
Name | Description | |
---|---|---|
HeapAllocator(UInt32, Int32, String) | Initializes a new instance of the HeapAllocator class | |
HeapAllocator(UInt32, Int32, Int32, String) | Initializes a new instance of the HeapAllocator class |
Name | Description | |
---|---|---|
FreeBlocksCount | ||
MaxFreeBlockSize | ||
MinBlockSize | ||
TotalUsedSize | ||
UsedBlocksCount |
Name | Description | |
---|---|---|
Alloc(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. | |
Alloc(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. | |
Alloc(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. | |
Alloc(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. | |
DumpReport | ||
Free | ||
GetMemoryBlockInfo | 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. | |
GetReportString | ||
GetUsedBlockNames |
Name | Description | |
---|---|---|
Alignment | ||
MinAlignment | ||
Name | ||
Size | Size of this HeapAllocator. Size is limited by uint size that is 4 GB (the same is the Vulkan's maxStorageBufferRange: 4294967295) |