\brief Compute the total size of a list of binary views including null views. This is useful when calculating the necessary memory to store all the string data from the views.
| 104 | /// This is useful when calculating the necessary memory to store all the string |
| 105 | /// data from the views. |
| 106 | inline int64_t SumOfBinaryViewSizes(const BinaryViewType::c_type* views, int64_t length) { |
| 107 | int64_t total = 0; |
| 108 | for (int64_t i = 0; i < length; ++i) { |
| 109 | total += views[i].size(); |
| 110 | } |
| 111 | return total; |
| 112 | } |
| 113 | |
| 114 | } // namespace arrow::util |
no test coverage detected