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

Method AllocateBuffer

cpp/src/gandiva/selection_vector.cc:159–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158template <typename C_TYPE, typename A_TYPE, SelectionVector::Mode mode>
159Status SelectionVectorImpl<C_TYPE, A_TYPE, mode>::AllocateBuffer(
160 int64_t max_slots, arrow::MemoryPool* pool, std::shared_ptr<arrow::Buffer>* buffer) {
161 auto buffer_len = max_slots * sizeof(C_TYPE);
162 ARROW_ASSIGN_OR_RAISE(*buffer, arrow::AllocateBuffer(buffer_len, pool));
163
164 return Status::OK();
165}
166
167template <typename C_TYPE, typename A_TYPE, SelectionVector::Mode mode>
168Status SelectionVectorImpl<C_TYPE, A_TYPE, mode>::ValidateBuffer(

Callers

nothing calls this directly

Calls 3

ARROW_ASSIGN_OR_RAISEFunction · 0.50
AllocateBufferFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected