 |
HeapAllocatorAlloc(Int32, 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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic bool Alloc(
int size,
out uint dataOffset
)
Parameters
- size Int32
- required size
- 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
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.HeapAllocator.Alloc(System.Int32,System.UInt32@)"]
See Also