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

Method LoadPrimitive

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

Source from the content-addressed store, hash-verified

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