sanjibansg commented on code in PR #14758: URL: https://github.com/apache/arrow/pull/14758#discussion_r1144971084
########## cpp/src/arrow/util/align_util.h: ########## @@ -63,6 +64,43 @@ inline BitmapWordAlignParams BitmapWordAlign(const uint8_t* data, int64_t bit_of p.aligned_start = data + (bit_offset + p.leading_bits) / 8; return p; } - } // namespace internal + +namespace util { + +ARROW_EXPORT bool CheckAlignment(const Buffer& buffer, const int64_t& alignment); +ARROW_EXPORT bool CheckAlignment(const ArrayData& array, const int64_t& alignment); +ARROW_EXPORT bool CheckAlignment(const Array& array, const int64_t& alignment); +ARROW_EXPORT bool CheckAlignment(const ChunkedArray& array, const int64_t& alignment, + std::vector<bool>& needs_alignment, + const int& offset = 0); +ARROW_EXPORT bool CheckAlignment(const RecordBatch& batch, const int64_t& alignment, + std::vector<bool>& needs_alignment); +ARROW_EXPORT bool CheckAlignment(const Table& table, const int64_t& alignment, + std::vector<bool>& needs_alignment); Review Comment: Added documentation for CheckAlignment functions. Thanks for the suggestion. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org