Closed
Description
Inside this zip archive there is a zstandard compressed file, produced by blender. (I had to compress it into a zip archive, because github does not allow uploading random binaries)
$ file l0.blend
Zstandard compressed data (v0.8+), Dictionary ID: None
$ zstdcat -l l0.blend
Frames Skips Compressed Uncompressed Ratio Check Filename
18 1 102.38 KB 902.79 KB 8.818 None l0.blend
zstd
crate, when used to decompress, produces a buffer of length 924460
, while ruzstd only decompresses 66804
bytes
The code to repro:
let mut decoded = ruzstd::StreamingDecoder::new(File::open(fname).unwrap()).unwrap();
println!("ruzstd {}", decoded.read_to_end(&mut vec![]).unwrap());
let mut decoded = zstd::Decoder::new(File::open(fname).unwrap()).unwrap();
println!("zstd {}", decoded.read_to_end(&mut vec![]).unwrap());
versions used
ruzstd = "=0.6.0"
zstd = "=0.13.0"
Am I using it wrong or is there a bug?
Thank you for maintaining this! ❤️
Metadata
Metadata
Assignees
Labels
No labels