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();