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