Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
pub entry: PxarEntry,
}
+impl DirectoryEntry {
+ pub(crate) fn start_offset(&self) -> u64 {
+ self.start
+ }
+
+ pub(crate) fn end_offset(&self) -> u64 {
+ self.end
+ }
+}
+
// This one needs Read+Seek
pub struct Decoder<R: Read + Seek, F: Fn(&Path) -> Result<(), Error>> {
inner: SequentialDecoder<R, F>,
Ok(pos)
}
+ pub(crate) fn root_end_offset(&self) -> u64 {
+ self.root_end
+ }
+
pub fn restore(&mut self, dir: &DirectoryEntry, path: &Path) -> Result<(), Error> {
let start = dir.start;