| 320 | } |
| 321 | |
| 322 | Status Resize(int64_t capacity) override { |
| 323 | ARROW_RETURN_NOT_OK(CheckCapacity(capacity)); |
| 324 | // One more than requested for offsets |
| 325 | ARROW_RETURN_NOT_OK(offsets_builder_.Resize(capacity + 1)); |
| 326 | return ArrayBuilder::Resize(capacity); |
| 327 | } |
| 328 | |
| 329 | /// \brief Ensures there is enough allocated capacity to append the indicated |
| 330 | /// number of bytes to the value data buffer without additional allocations |
no test coverage detected