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

Method LoadPrimitive

cpp/src/arrow/ipc/reader.cc:340–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338
339 template <typename TYPE>
340 Status LoadPrimitive(Type::type type_id) {
341 DCHECK_NE(out_, nullptr);
342 out_->buffers.resize(2);
343
344 RETURN_NOT_OK(LoadCommon(type_id));
345 if (out_->length > 0) {
346 RETURN_NOT_OK(GetBuffer(buffer_index_++, &out_->buffers[1]));
347 } else {
348 buffer_index_++;
349 out_->buffers[1] = std::make_shared<Buffer>(nullptr, 0);
350 }
351 return Status::OK();
352 }
353
354 Status LoadBinary(Type::type type_id) {
355 DCHECK_NE(out_, nullptr);

Callers

nothing calls this directly

Calls 3

GetBufferFunction · 0.85
resizeMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected