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

Function GetNumBytes

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

Get the number of bytes associate with a packing.

Source from the content-addressed store, hash-verified

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