| 96 | } |
| 97 | |
| 98 | int64_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 | |
| 110 | namespace internal { |
| 111 |