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

Function FromBinaryView

cpp/src/arrow/util/binary_view_util.h:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64template <typename BufferPtr>
65std::string_view FromBinaryView(const BinaryViewType::c_type& v,
66 const BufferPtr* data_buffers) {
67 auto* data = v.is_inline() ? v.inlined.data.data()
68 : data_buffers[v.ref.buffer_index]->data() + v.ref.offset;
69 return {reinterpret_cast<const char*>(data), static_cast<size_t>(v.size())};
70}
71template <typename BufferPtr>
72std::string_view FromBinaryView(BinaryViewType::c_type&&, const BufferPtr*) = delete;
73

Callers 5

VisitStatusMethod · 0.85
VisitVoidMethod · 0.85
AppendArraySliceMethod · 0.85
GetViewMethod · 0.85
operator()Method · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected