You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by tu...@apache.org on 2023/09/27 09:28:49 UTC

[arrow-rs] branch master updated: Make align_buffers as public API (#4863)

This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a07be3a51 Make align_buffers as public API (#4863)
8a07be3a51 is described below

commit 8a07be3a5111aaab8dda5288f5ebcd962f00ad66
Author: Liang-Chi Hsieh <vi...@gmail.com>
AuthorDate: Wed Sep 27 02:28:44 2023 -0700

    Make align_buffers as public API (#4863)
---
 arrow-data/src/data.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrow-data/src/data.rs b/arrow-data/src/data.rs
index 2073b932c9..5f87dddd42 100644
--- a/arrow-data/src/data.rs
+++ b/arrow-data/src/data.rs
@@ -705,7 +705,7 @@ impl ArrayData {
     ///
     /// This can be useful for when interacting with data sent over IPC or FFI, that may
     /// not meet the minimum alignment requirements
-    fn align_buffers(&mut self) {
+    pub fn align_buffers(&mut self) {
         let layout = layout(&self.data_type);
         for (buffer, spec) in self.buffers.iter_mut().zip(&layout.buffers) {
             if let BufferSpec::FixedWidth { alignment, .. } = spec {