viirya commented on code in PR #4681:
URL: https://github.com/apache/arrow-rs/pull/4681#discussion_r1291657590


##########
arrow-data/src/data.rs:
##########
@@ -699,6 +699,23 @@ impl ArrayData {
         Self::new_null(data_type, 0)
     }
 
+    /// Verifies that the buffers meet the minimum alignment requirements for 
the data type
+    ///
+    /// Buffers that are not adequately aligned will be copied to a new 
aligned allocation
+    ///
+    /// This can be useful for when interacting with data sent over IPC or 
FFI, that may
+    /// not meet the minimum alignment requirements
+    pub fn align_buffers(&mut self) {

Review Comment:
   Nice. It seems that it might take longer for a fix at Java Arrow 
implementation.



-- 
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]

Reply via email to