MergedAllocation.alloc

Given pointer base, array gets an alignement area with numElems T elements and a given alignment. base gets incremented to point to just after that area. This is usful to create merged allocations with a chain of mergedAllocArea. Giving null to this chain and converting the result to size_t give the total needed size for the merged allocation. Warning: if called after a start() call, the area returned are wrong and are only for counting needed bytes. if called after an allocate() call, the area returned are right (if the same calls are done).

struct MergedAllocation
nothrow @nogc
void
alloc
(
T
)
(
out T* array
,
size_t numElems
,
size_t alignment = 1
)

Meta