Allocator1D
Description
- Derived from
-
AllocatorBase<int32, int32, RangeI> abstract
Helper class for allocating slot ranges in a one-dimensional linear domain:
+---+---+---+---+---+---+---+---+ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | slots +---+---+---+---+---+---+---+---+ \_______________________________/ capacity (here 8)
Public / Constructors
Allocator1D
Creates a new instance of Allocator1D.
The allocator capacity is a logical limit for the total number of slots that can be allocated. For each block that is allocated with IAllocator.Allocate, 4 bytes of memory are used for internal management.