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

Function GetNumBytes

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

Get the number of bytes associate with a packing.

Source from the content-addressed store, hash-verified

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