MCPcopy Create free account
hub / github.com/adriancable/eternal / Grow

Method Grow

doom/src/tarray.h:341–350  ·  view source on GitHub ↗

Grow Array to be large enough to hold amount more entries without further growing.

Source from the content-addressed store, hash-verified

339 // Grow Array to be large enough to hold amount more entries without
340 // further growing.
341 void Grow (unsigned int amount)
342 {
343 if (Count + amount > Most)
344 {
345 const unsigned int choicea = Count + amount;
346 const unsigned int choiceb = Most = (Most >= 16) ? Most + Most / 2 : 16;
347 Most = (choicea > choiceb ? choicea : choiceb);
348 DoResize ();
349 }
350 }
351 // Resize Array so that it has exactly amount entries in use.
352 void Resize (unsigned int amount)
353 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected