Grow Array to be large enough to hold amount more entries without further growing.
| 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 | { |
no outgoing calls
no test coverage detected