| 550 | /// @param shrink_to_fit Whether to shrink the capacity if new size < current size |
| 551 | virtual Status Resize(const int64_t new_size, bool shrink_to_fit) = 0; |
| 552 | Status Resize(const int64_t new_size) { |
| 553 | return Resize(new_size, /*shrink_to_fit=*/true); |
| 554 | } |
| 555 | |
| 556 | /// Ensure that buffer has enough memory allocated to fit the indicated |
| 557 | /// capacity (and meets the 64 byte padding requirement in Layout.md). |