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
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 1, 2021
1 parent 23c7d8a commit 46a80f0
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 46a80f0

Please sign in to comment.