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

Method ExtendCurrent

cpp/src/arrow/array/builder_binary.h:93–100  ·  view source on GitHub ↗

Extend the last appended value by appending more data at the end Unlike Append, this does not create a new offset.

Source from the content-addressed store, hash-verified

91 ///
92 /// Unlike Append, this does not create a new offset.
93 Status ExtendCurrent(const uint8_t* value, offset_type length) {
94 // Safety check for UBSAN.
95 if (ARROW_PREDICT_TRUE(length > 0)) {
96 ARROW_RETURN_NOT_OK(ValidateOverflow(length));
97 ARROW_RETURN_NOT_OK(value_data_builder_.Append(value, length));
98 }
99 return Status::OK();
100 }
101
102 Status ExtendCurrent(std::string_view value) {
103 return ExtendCurrent(reinterpret_cast<const uint8_t*>(value.data()),

Callers 1

TestExtendCurrentMethod · 0.80

Calls 5

ValidateOverflowFunction · 0.70
OKFunction · 0.50
AppendMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TestExtendCurrentMethod · 0.64