Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
make Buffer::offset public (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Dec 8, 2021
1 parent b588382 commit 6ec9cf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/buffer/immutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ impl<T: NativeType> Buffer<T> {
self.data.ptr()
}

/// Returns a offset of this buffer
pub(crate) fn offset(&self) -> usize {
/// Returns the offset of this buffer.
#[inline]
pub fn offset(&self) -> usize {
self.offset
}
}
Expand Down

0 comments on commit 6ec9cf5

Please sign in to comment.