Struct SlabAllocator
Public
A tiny slab allocator.
Allocates spans of type T in power-of-two sized blocks.
Note
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
Public Variables
ByteSize
Public
IsCreated
Public
IsDebugAllocator
Public
data
Public
Public Static Variables
AllocatedBit
Public
Static
InvalidAllocation
Allocation which is always invalid.
Public
Static
LengthMask
Public
Static
MaxAllocationSize
Public
Static
MaxAllocationSizeIndex
Public
Static
UsedBit
Public
Static
ZeroLengthArray
Allocation representing a zero-length array.
Public
Static