The OpenD Programming Language

Quantizer.expand

First checks whether there's enough slack memory preallocated for b by evaluating b.length + delta <= goodAllocSize(b.length). If that's the case, expands b in place. Otherwise, attempts to use parent.expand appropriately if present.

struct Quantizer(ParentAllocator, alias roundingFunction)
bool
expand
(
ref void[] b
,
size_t delta
)

Meta