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

Method LoadPrimitive

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

Source from the content-addressed store, hash-verified

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