Skip to content

Commit

Permalink
Expose buf_index (#187)
Browse files Browse the repository at this point in the history
This makes it easier to build abstractions on top of the `FixedBufferRegistry`.
  • Loading branch information
Nehliin authored Dec 1, 2022
1 parent 8750caa commit 0572c11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/buf/fixed/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ impl FixedBuf {
}
}

pub(crate) fn buf_index(&self) -> u16 {
/// Index of the underlying registry buffer
pub fn buf_index(&self) -> u16 {
self.index
}
}
Expand Down

0 comments on commit 0572c11

Please sign in to comment.