Mimallocator.goodAllocSize

Return the memory size that will be allocated asking for the minimum required size.

struct Mimallocator
@trusted @nogc nothrow
size_t
goodAllocSize
shared
(
size_t size
)

Parameters

size
Type: size_t

The minimal required size in bytes.

Return Value

Type: size_t

the size n that will be allocated, where n >= size.

Meta