wesm commented on a change in pull request #7507:
URL: https://github.com/apache/arrow/pull/7507#discussion_r513785728



##########
File path: cpp/src/arrow/array/util.h
##########
@@ -37,6 +37,11 @@ namespace arrow {
 ARROW_EXPORT
 std::shared_ptr<Array> MakeArray(const std::shared_ptr<ArrayData>& data);
 
+/// \brief Swap endian of each element in a generic ArrayData
+/// \param[in] data the array contents to be swapped
+ARROW_EXPORT
+void SwapEndianArrayData(std::shared_ptr<ArrayData>& data);

Review comment:
       Also since this allocates memory it needs to be able to fail




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to