|
HeapAllocatorAlloc(UInt32, String, UInt32) Method |
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.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax public bool Alloc(
uint size,
string? name,
out uint? dataOffset
)
Parameters
- size UInt32
- required size
- name String
- name of the allocated memory block
- dataOffset UInt32
- out parameter set to the offset inside the memory block that is behind this HeapAllocator
Return Value
Booleantrue when it is possible to allocate the block; false when it is not possible to allocate as block with required size
See Also