Aligns a pointer down to a specified alignment. The resulting pointer is less than or equal to the given pointer.
Aligns a pointer up to a specified alignment. The resulting pointer is greater than or equal to the given pointer.
Returns true if ptr is aligned at alignment.
Returns n rounded down to a multiple of alignment, which must be a power of 2.
Returns n rounded up to a multiple of alignment, which must be a power of 2.
Returns s rounded up to a multiple of base.
InSituRegion is a convenient region that carries its storage within itself (in the form of a statically-sized array).
A Region allocator allocates memory straight from one contiguous chunk. There is no deallocation, and once the region is full, allocation requests return null. Therefore, Regions are often used (a) in conjunction with more sophisticated allocators; or (b) for batch-style very fast allocations that deallocate everything at once.
The threadsafe version of the Region allocator. Allocations and deallocations are lock-free based using core.atomic.cas.