pitrou commented on code in PR #35565: URL: https://github.com/apache/arrow/pull/35565#discussion_r1205228896
########## cpp/src/arrow/util/align_util.h: ########## @@ -82,29 +101,109 @@ ARROW_EXPORT bool CheckAlignment(const Array& array, int64_t alignment); // of the constituent objects during the EnsureAlignment function where certain // objects can be ignored for further checking if we already know that they are // completely aligned. + +/// \brief calculate which (if any) chunks in a chunked array are unaligned +/// \param array the array to check +/// \param alignment the alignment to check for +/// \param needs_alignment an output vector that will store the results of the check +/// it must be set to a valid vector. Extra elements will be added to the end +/// of the vector for each chunk that is checked. `true` will be stored if Review Comment: As you prefer. If the current API is convenient for our uses we can keep it. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
