From ce1cef0fb1aad7b1121211109b5986fdc11caaa1 Mon Sep 17 00:00:00 2001 From: ismail Date: Tue, 4 Aug 2026 16:41:18 +0300 Subject: [PATCH] made public get method for zero-copy slice retrieval --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d0bbb34..84c75c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,7 +67,7 @@ pub mod binary { /// Internal: Returns a slice without allocation (zero-copy) #[inline] - fn get(&mut self, length: usize) -> &'a [u8] { + pub fn get(&mut self, length: usize) -> &'a [u8] { let start = self.offset; let end = start + length;