| 150 | |
| 151 | template <typename offset_type> |
| 152 | std::pair<int64_t, int64_t> RangeOfValuesUsedByList(const ArraySpan& input) { |
| 153 | DCHECK(is_var_length_list(*input.type)); |
| 154 | if (input.length == 0) { |
| 155 | return {0, 0}; |
| 156 | } |
| 157 | const auto* offsets = input.buffers[1].data_as<offset_type>(); |
| 158 | const int64_t min_offset = offsets[input.offset]; |
| 159 | const int64_t max_end = offsets[input.offset + input.length]; |
| 160 | return {min_offset, max_end - min_offset}; |
| 161 | } |
| 162 | |
| 163 | template <typename offset_type> |
| 164 | int64_t SumOfListSizes(const ArraySpan& input) { |
nothing calls this directly
no test coverage detected