Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Proposed new implementation of mutable_data() by apitrou
uint8_t* mutable_data() {
return is_mutable() ? const_cast<uint8_t*>(data()) : nullptr;
}
This will help avoid various classes of bugs (initializing Buffer subclasses incorrectly) and make the object smaller on the heap
Attachments
Issue Links
- is related to
-
ARROW-12495 [C++][Python] NumPy buffer sets is_mutable_ to true but does not set mutable_data_ when the NumPy array is writable
- Resolved
-
ARROW-11172 [Python] NumPyBuffer does not set mutable_data_
- Closed
- links to