The number of offsets being written will be `1 + num_rows * num_cols`, however we allow for one extraneous write in case of excessive columns, hence `2 + num_rows * num_cols` (see explanation in PushValue below).
| 212 | // however we allow for one extraneous write in case of excessive columns, |
| 213 | // hence `2 + num_rows * num_cols` (see explanation in PushValue below). |
| 214 | PresizedValueDescWriter(MemoryPool* pool, int32_t num_rows, int32_t num_cols) |
| 215 | : ValueDescWriter( |
| 216 | pool, /*values_capacity=*/2 + static_cast<int64_t>(num_rows) * num_cols) {} |
| 217 | |
| 218 | void PushValue(ParsedValueDesc v) { |
| 219 | DCHECK_LT(values_size_, values_capacity_); |
nothing calls this directly
no outgoing calls
no test coverage detected