From 0572c11c21e9aca935564afaf91fb0deaa39c528 Mon Sep 17 00:00:00 2001 From: Oskar Nehlin Date: Thu, 1 Dec 2022 13:30:23 +0100 Subject: [PATCH] Expose `buf_index` (#187) This makes it easier to build abstractions on top of the `FixedBufferRegistry`. --- src/buf/fixed/handle.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buf/fixed/handle.rs b/src/buf/fixed/handle.rs index 9f7315be..ff416a3d 100644 --- a/src/buf/fixed/handle.rs +++ b/src/buf/fixed/handle.rs @@ -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 } }