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

Function AppendEmptyValues

cpp/src/arrow/array/builder_adaptive.h:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 Status AppendEmptyValues(int64_t length) final {
76 ARROW_RETURN_NOT_OK(CommitPendingData());
77 if (ARROW_PREDICT_TRUE(length > 0)) {
78 ARROW_RETURN_NOT_OK(Reserve(length));
79 memset(data_->mutable_data() + length_ * int_size_, 0, int_size_ * length);
80 UnsafeSetNotNull(length);
81 }
82 return Status::OK();
83 }
84
85 Status AppendEmptyValue() final {
86 pending_data_[pending_pos_] = 0;

Callers

nothing calls this directly

Calls 3

ReserveFunction · 0.70
OKFunction · 0.50
mutable_dataMethod · 0.45

Tested by

no test coverage detected