| 117 | using internal::npy_traits; |
| 118 | |
| 119 | bool IsUuidExtension(const DataType& type) { |
| 120 | if (type.id() != Type::EXTENSION) { |
| 121 | return false; |
| 122 | } |
| 123 | const auto& extension_type = checked_cast<const ExtensionType&>(type); |
| 124 | const auto& storage_type = *extension_type.storage_type(); |
| 125 | return extension_type.extension_name() == "arrow.uuid" && |
| 126 | storage_type.id() == Type::FIXED_SIZE_BINARY && |
| 127 | checked_cast<const FixedSizeBinaryType&>(storage_type).byte_width() == 16; |
| 128 | } |
| 129 | |
| 130 | template <typename T> |
| 131 | struct WrapBytes {}; |
no test coverage detected