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

Function UsesStaticStorage

cpp/src/arrow/util/small_vector_test.cc:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70template <typename Vector>
71bool UsesStaticStorage(const Vector& v) {
72 const uint8_t* p = reinterpret_cast<const uint8_t*>(v.data());
73 if (p == nullptr) {
74 return true;
75 }
76 const uint8_t* v_start = reinterpret_cast<const uint8_t*>(&v);
77 return (p >= v_start && p < v_start + sizeof(v));
78}
79
80struct StaticVectorTraits {
81 template <typename T, size_t N>

Callers 7

CheckFourValuesMethod · 0.85
TestBasicsMethod · 0.85
TestAlwaysStaticMethod · 0.85
CheckReserveMethod · 0.85
CheckClearMethod · 0.85
CheckMoveFunction · 0.85
CheckCopyFunction · 0.85

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected