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

Function GetValidBytes

cpp/src/arrow/util/int_util_benchmark.cc:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::vector<uint8_t> GetValidBytes(int n_values) {
51 std::vector<uint8_t> valid_bytes(n_values);
52 for (int i = 0; i < n_values; ++i) {
53 valid_bytes[i] = (i % 3 == 0) ? 1 : 0;
54 }
55 return valid_bytes;
56}
57
58static void DetectUIntWidthNoNulls(
59 benchmark::State& state) { // NOLINT non-const reference

Callers 2

DetectUIntWidthNullsFunction · 0.85
DetectIntWidthNullsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected