| 346 | } |
| 347 | |
| 348 | bool resize(size_t newLength) { |
| 349 | size_t oldLength = vector.length(); |
| 350 | if (newLength <= oldLength) { |
| 351 | vector.shrinkBy(oldLength - newLength); |
| 352 | return true; |
| 353 | } |
| 354 | if (!vector.growByUninitialized(newLength - oldLength)) |
| 355 | return false; |
| 356 | makeRangeGCSafe(oldLength); |
| 357 | return true; |
| 358 | } |
| 359 | |
| 360 | void clear() { vector.clear(); } |
| 361 |
nothing calls this directly
no test coverage detected