MCPcopy Create free account
hub / github.com/ZDoom/Raze / Grow

Method Grow

source/common/utility/tarray.h:733–742  ·  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

731 // Grow Array to be large enough to hold amount more entries without
732 // further growing.
733 void Grow (unsigned int amount)
734 {
735 if (Count + amount > Most)
736 {
737 const unsigned int choicea = Count + amount;
738 const unsigned int choiceb = Most = (Most >= 16) ? Most + Most / 2 : 16;
739 Most = (choicea > choiceb ? choicea : choiceb);
740 DoResize ();
741 }
742 }
743 // Resize Array so that it has exactly amount entries in use.
744 void Resize (unsigned int amount)
745 {

Callers 3

AppendArgsMethod · 0.80
ArrayGrowFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected