Its the caller responsibility to make sure that `offsets_` and `sizes_` are safe to write at index i, i.ex not shared, or not large enough.
| 607 | // Its the caller responsibility to make sure that `offsets_` and `sizes_` are |
| 608 | // safe to write at index i, i.ex not shared, or not large enough. |
| 609 | void |
| 610 | setOffsetAndSize(vector_size_t i, vector_size_t offset, vector_size_t size) { |
| 611 | DCHECK_LT(i, BaseVector::length_); |
| 612 | offsets_->asMutable<vector_size_t>()[i] = offset; |
| 613 | sizes_->asMutable<vector_size_t>()[i] = size; |
| 614 | } |
| 615 | |
| 616 | /// Verify that an ArrayVector/MapVector does not contain overlapping [offset, |
| 617 | /// size] ranges. Throws in case overlaps are found. |
no outgoing calls