Skip to content

Commit 6b23116

Browse files
committed
feat(xz): support reading uncompressed size
1 parent afa9be9 commit 6b23116

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/compression-codecs/src/xz/decoder.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ impl Decode for XzDecoder {
8787
self.inner.flush(output)
8888
}
8989

90+
fn uncompressed_size(&mut self, input: &[u8]) -> Option<usize> {
91+
self.inner.uncompressed_size(input)
92+
}
93+
9094
fn finish(
9195
&mut self,
9296
output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>,

0 commit comments

Comments
 (0)