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

Function FixedWidthInBits

cpp/src/arrow/util/fixed_width_internal.cc:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98int64_t FixedWidthInBits(const DataType& type) {
99 auto type_id = type.id();
100 if (is_fixed_width(type_id)) {
101 return type.bit_width();
102 }
103 if (type_id == Type::FIXED_SIZE_LIST) {
104 auto& fsl = ::arrow::internal::checked_cast<const FixedSizeListType&>(type);
105 return FixedWidthInBitsFallback(fsl);
106 }
107 return -1;
108}
109
110namespace internal {
111

Callers 4

TEST_FFunction · 0.85
PrimitiveFilterExecFunction · 0.85
ExecMethod · 0.85
FixedWidthTakeExecFunction · 0.85

Calls 4

is_fixed_widthFunction · 0.85
FixedWidthInBitsFallbackFunction · 0.85
idMethod · 0.45
bit_widthMethod · 0.45

Tested by 1

TEST_FFunction · 0.68