\brief Return a writable pointer to the buffer's data The buffer has to be a mutable CPU buffer (`is_cpu()` and `is_mutable()` are true). Otherwise, an assertion may be thrown or a null pointer may be returned. To get the buffer's mutable data address regardless of its device, call `mutable_address()`.
| 296 | /// To get the buffer's mutable data address regardless of its device, call |
| 297 | /// `mutable_address()`. |
| 298 | uint8_t* mutable_data() { |
| 299 | #ifndef NDEBUG |
| 300 | CheckCPU(); |
| 301 | CheckMutable(); |
| 302 | #endif |
| 303 | return ARROW_PREDICT_TRUE(is_cpu_ && is_mutable_) ? const_cast<uint8_t*>(data_) |
| 304 | : NULLPTR; |
| 305 | } |
| 306 | |
| 307 | /// \brief Return a writable pointer to the buffer's data cast to a specific type |
| 308 | /// |
no outgoing calls
no test coverage detected