Struct SlabAllocator
A tiny slab allocator.
Allocates spans of type T in power-of-two sized blocks.
This allocator has no support for merging adjacent freed blocks. Therefore it is best suited for similarly sized allocations which are relatively small.
Can be used in burst jobs.
This is faster than allocating NativeArrays using the Temp allocator, and significantly faster than allocating them using the Persistent allocator.
Inner Types
Public Methods
Allocates an array big enough to fit the given values and copies them to the new allocation.
Allocates an array big enough to fit the given values and copies them to the new allocation.
Allocates an array of type T with length nElements.
Frees all existing allocations.
Frees all unmanaged memory associated with this container.
Frees a single allocation.
Get the span representing the given allocation.
Public Variables
Public Static Variables
Allocation which is always invalid.
Allocation representing a zero-length array.