| 46 | /// them. |
| 47 | template <typename T> |
| 48 | inline T* MakeNonNull(T* maybe_null = NULLPTR) { |
| 49 | if (ARROW_PREDICT_TRUE(maybe_null != NULLPTR)) { |
| 50 | return maybe_null; |
| 51 | } |
| 52 | |
| 53 | return const_cast<T*>(reinterpret_cast<const T*>(&internal::kNonNullFiller)); |
| 54 | } |
| 55 | |
| 56 | template <typename T> |
| 57 | ARROW_FORCE_INLINE std::enable_if_t<std::is_trivially_copyable_v<T>, T> SafeLoadAs( |
no outgoing calls
no test coverage detected