Skip to content

Commit 0572c11

Browse files
authored
Expose buf_index (#187)
This makes it easier to build abstractions on top of the `FixedBufferRegistry`.
1 parent 8750caa commit 0572c11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/buf/fixed/handle.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ impl FixedBuf {
5555
}
5656
}
5757

58-
pub(crate) fn buf_index(&self) -> u16 {
58+
/// Index of the underlying registry buffer
59+
pub fn buf_index(&self) -> u16 {
5960
self.index
6061
}
6162
}

0 commit comments

Comments
 (0)