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

Function MakeNonNull

cpp/src/arrow/util/ubsan.h:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46/// them.
47template <typename T>
48inline 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
56template <typename T>
57ARROW_FORCE_INLINE std::enable_if_t<std::is_trivially_copyable_v<T>, T> SafeLoadAs(

Callers 6

MakeSparseTensorIndexCSFFunction · 0.85
BitmapUInt64ReaderMethod · 0.85
BaseSetBitRunReaderClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected