diff --git a/src/pxar/sequential_decoder.rs b/src/pxar/sequential_decoder.rs index cd8d5b70..4109ce3d 100644 --- a/src/pxar/sequential_decoder.rs +++ b/src/pxar/sequential_decoder.rs @@ -74,7 +74,7 @@ impl Result<(), Error>> SequentialDecoder { Ok(result.from_le()) } - fn read_link(&mut self, size: u64) -> Result { + pub(crate) fn read_link(&mut self, size: u64) -> Result { if size < (HEADER_SIZE + 2) { bail!("dectected short link target."); } @@ -177,7 +177,7 @@ impl Result<(), Error>> SequentialDecoder { Ok(PxarFCaps { data: buffer }) } - fn read_attributes(&mut self) -> Result<(PxarHeader, PxarAttributes), Error> { + pub(crate) fn read_attributes(&mut self) -> Result<(PxarHeader, PxarAttributes), Error> { let mut attr = PxarAttributes::default(); let mut head: PxarHeader = self.read_item()?; let mut size = (head.size - HEADER_SIZE) as usize; @@ -492,7 +492,7 @@ impl Result<(), Error>> SequentialDecoder { Ok(()) } - fn skip_bytes(&mut self, count: usize) -> Result<(), Error> { + pub(crate) fn skip_bytes(&mut self, count: usize) -> Result<(), Error> { let mut done = 0; while done < count { let todo = count - done;