We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaf199e commit 8132bc7Copy full SHA for 8132bc7
crates/compression-codecs/src/lzma/decoder.rs
@@ -1,4 +1,4 @@
1
-use crate::{Decode, Xz2Decoder};
+use crate::{Decode, DecodedSize, Xz2Decoder};
2
use compression_core::util::PartialBuffer;
3
use std::{convert::TryInto, io::Result};
4
@@ -61,3 +61,9 @@ impl Decode for LzmaDecoder {
61
self.inner.finish(output)
62
}
63
64
+
65
+impl DecodedSize for LzmaDecoder {
66
+ fn decoded_size(input: &[u8]) -> io::Result<usize> {
67
+ Xz2Decoder::decoded_size(input)
68
+ }
69
+}
0 commit comments