Skip to content

Commit

Permalink
Make align_buffers as public API (#4863)
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya authored Sep 27, 2023
1 parent 4ef7917 commit 8a07be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-data/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8a07be3

Please sign in to comment.