ListAllocatorSized
struct in EvolveUI.Unsafe
A simple pool allocator intended to be used to allocate lists of unmanaged types.Memory returned is NOT cleared, user must clear it if desired.Uses a set of fixed block allocators but doesn't commit memory into the block sizesuntil it actually needs to, which should reduce memory waste dramatically.
This will not recycle blocks between sizes because I don't want to pay the price of coalescingneighboring blocks that are free. (a-la Buddy allocator)
Fields
minAllocSize | Description goes here |
maxAllocSize | Description goes here |
pageSize | Description goes here |
Clear | Description goes here |
Dispose | Description goes here |
AllocateCleared | Description goes here |
Allocate | Description goes here |
Free | Description goes here |
GetPageCount | Description goes here |
DumpPageStats | Description goes here |
Reallocate | Description goes here |
GetCapacityFromSize | Description goes here |