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