Extend the last appended value by appending more data at the end Unlike Append, this does not create a new offset.
| 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()), |