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

Made Buffer::offset public #652

Merged
merged 1 commit into from
Dec 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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