Skip to content

Commit

Permalink
Make ArrowBuffer more opaque
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 21, 2024
1 parent 8c66f64 commit 56ee284
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/store/re_types_core/src/arrow_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use arrow2::buffer::Buffer;
/// arise from returning a `&[T]` directly, but is significantly more
/// performant than doing the full allocation necessary to return a `Vec<T>`.
#[derive(Clone, Debug, Default, PartialEq)]
pub struct ArrowBuffer<T>(pub Buffer<T>);
pub struct ArrowBuffer<T>(Buffer<T>);

impl<T: crate::SizeBytes> crate::SizeBytes for ArrowBuffer<T> {
#[inline]
Expand Down Expand Up @@ -50,11 +50,6 @@ impl<T> ArrowBuffer<T> {
self.0.as_slice()
}

#[inline]
pub fn into_inner(self) -> Buffer<T> {
self.0
}

/// Returns a new [`Buffer`] that is a slice of this buffer starting at `offset`.
///
/// Doing so allows the same memory region to be shared between buffers.
Expand Down

0 comments on commit 56ee284

Please sign in to comment.