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

Function GetNumBytes

cpp/src/arrow/util/bpacking_test.cc:41–43  ·  view source on GitHub ↗

Get the number of bytes associate with a packing.

Source from the content-addressed store, hash-verified

39
40/// Get the number of bytes associate with a packing.
41int GetNumBytes(int num_values, int bit_width, int bit_offset) {
42 return static_cast<int>(bit_util::BytesForBits(num_values * bit_width + bit_offset));
43}
44
45/// Generate random values that can be packed within the given bit width.
46template <typename Uint>

Callers 4

PackValuesFunction · 0.70
TestUnpackZerosMethod · 0.70
TestUnpackOnesMethod · 0.70
TestUnpackAlternatingMethod · 0.70

Calls 1

BytesForBitsFunction · 0.85

Tested by

no test coverage detected