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

Function inline_data

cpp/src/arrow/type.h:855–859  ·  view source on GitHub ↗

Return a pointer to the inline data of a view. For inline views, this points to the entire data of the view. For other views, this points to the 4 byte prefix.

Source from the content-addressed store, hash-verified

853 /// For inline views, this points to the entire data of the view.
854 /// For other views, this points to the 4 byte prefix.
855 const uint8_t* inline_data() const& {
856 // Since `ref.prefix` has the same address as `inlined.data`,
857 // the branch will be trivially optimized out.
858 return is_inline() ? inlined.data.data() : ref.prefix.data();
859 }
860 const uint8_t* inline_data() && = delete;
861 };
862 static_assert(sizeof(c_type) == kSize);

Callers

nothing calls this directly

Calls 2

is_inlineFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected