\brief Append the given data to the buffer The buffer is automatically expanded if necessary.
| 111 | /// |
| 112 | /// The buffer is automatically expanded if necessary. |
| 113 | Status Append(const void* data, const int64_t length) { |
| 114 | if (ARROW_PREDICT_FALSE(size_ + length > capacity_)) { |
| 115 | ARROW_RETURN_NOT_OK(Resize(GrowByFactor(capacity_, size_ + length), false)); |
| 116 | } |
| 117 | UnsafeAppend(data, length); |
| 118 | return Status::OK(); |
| 119 | } |
| 120 | |
| 121 | /// \brief Append the given data to the buffer |
| 122 | /// |
no test coverage detected