The OpenD Programming Language

ContiguousFreeList.goodAllocSize

If n is eligible for freelisting, returns max. Otherwise, returns parent.goodAllocSize(n).

Precondition: If set at runtime, min and/or max must be initialized appropriately.

Postcondition: result >= bytes

struct ContiguousFreeList(ParentAllocator, size_t minSize, size_t maxSize = minSize)
size_t
goodAllocSize
(
size_t n
)

Meta