Skip to content

Commit 04856e1

Browse files
committed
feat(lzma): implement reading uncompressed size
1 parent 08fb5a6 commit 04856e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ impl Decode for LzmaDecoder {
4747
self.inner.decode(input, output)
4848
}
4949

50+
fn uncompressed_size(&mut self, input: &[u8]) -> Option<usize> {
51+
self.inner.uncompressed_size(input)
52+
}
53+
5054
fn flush(
5155
&mut self,
5256
output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>,

0 commit comments

Comments
 (0)