MCPcopy Create free account
hub / github.com/apache/arrow / SumOfBinaryViewSizes

Function SumOfBinaryViewSizes

cpp/src/arrow/util/binary_view_util.h:106–112  ·  view source on GitHub ↗

\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.

Source from the content-addressed store, hash-verified

104/// This is useful when calculating the necessary memory to store all the string
105/// data from the views.
106inline 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

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected