From 2a7b789bbdef68fc51ce09fc2c3669b5738b75d3 Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Tue, 12 Mar 2024 14:12:49 +0100 Subject: [PATCH] decoder: add method to read payload references This is in preparation for reading payloads from a dedicated payload input stream. Signed-off-by: Christian Ebner --- src/decoder/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index 3c6d9ef..d19ffd1 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -664,6 +664,11 @@ impl DecoderImpl { async fn read_quota_project_id(&mut self) -> io::Result { self.read_simple_entry("quota project id").await } + + async fn read_payload_ref(&mut self) -> io::Result { + self.current_header.check_header_size()?; + seq_read_entry(&mut self.input).await + } } /// Reader for file contents inside a pxar archive.