\brief Append multiple nulls \param[in] length the number of nulls to append
| 49 | /// \brief Append multiple nulls |
| 50 | /// \param[in] length the number of nulls to append |
| 51 | Status AppendNulls(int64_t length) final { |
| 52 | ARROW_RETURN_NOT_OK(CommitPendingData()); |
| 53 | if (ARROW_PREDICT_TRUE(length > 0)) { |
| 54 | ARROW_RETURN_NOT_OK(Reserve(length)); |
| 55 | memset(data_->mutable_data() + length_ * int_size_, 0, int_size_ * length); |
| 56 | UnsafeSetNull(length); |
| 57 | } |
| 58 | return Status::OK(); |
| 59 | } |
| 60 | |
| 61 | Status AppendNull() final { |
| 62 | pending_data_[pending_pos_] = 0; |
nothing calls this directly
no test coverage detected