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 4694d59 commit 30e2a2bCopy full SHA for 30e2a2b
crates/compression-codecs/src/zstd/decoder.rs
@@ -73,6 +73,10 @@ impl Decode for ZstdDecoder {
73
Ok(bytes_left == 0)
74
}
75
76
+ fn uncompressed_size(&mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>) -> Option<usize> {
77
+ zstd_safe::find_frame_compressed_size(input.unwritten()).ok()
78
+ }
79
+
80
fn finish(
81
&mut self,
82
output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>,
0 commit comments