From 72cfe04af11ffea353993256ea4572f9662b7dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sun, 6 Jul 2025 00:02:10 +0000 Subject: [PATCH] doc for `file::Chunk` --- src/file/chunk.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/file/chunk.rs b/src/file/chunk.rs index 129c331..0142298 100644 --- a/src/file/chunk.rs +++ b/src/file/chunk.rs @@ -27,18 +27,22 @@ impl<'t> Chunk<'t> { } } + /// get a reference to the associated file_id pub fn get_file_id(&self) -> &sharry::FileID { &self.file_id } + /// get the chunk's offset pub fn get_offset(&self) -> u64 { self.offset } + /// get a reference to the associated data pub fn get_data(&self) -> &[u8] { self.data } + /// get the chunk's length pub fn get_length(&self) -> u64 { let len = self.data.len();