| 67 | : BaseBinaryBuilder(pool) {} |
| 68 | |
| 69 | Status Append(const uint8_t* value, offset_type length) { |
| 70 | ARROW_RETURN_NOT_OK(Reserve(1)); |
| 71 | UnsafeAppendNextOffset(); |
| 72 | // Safety check for UBSAN. |
| 73 | if (ARROW_PREDICT_TRUE(length > 0)) { |
| 74 | ARROW_RETURN_NOT_OK(ValidateOverflow(length)); |
| 75 | ARROW_RETURN_NOT_OK(value_data_builder_.Append(value, length)); |
| 76 | } |
| 77 | |
| 78 | UnsafeAppendToBitmap(true); |
| 79 | return Status::OK(); |
| 80 | } |
| 81 | |
| 82 | Status Append(const char* value, offset_type length) { |
| 83 | return Append(reinterpret_cast<const uint8_t*>(value), length); |
no test coverage detected