zstd-rs
zstd-rs copied to clipboard
zstd::bulk::decompress: says "less than" instead of "less or equal"
zstd::bulk::decompress: says "less than" instead of "less or equal". Using this code:
fn main() {
let src = b"abc";
let compressed = zstd::bulk::compress(src, 1).unwrap();
assert_eq!(zstd::bulk::decompress(&compressed, src.len()).unwrap(), src);
}
we can verify that "less or equal" was intended
Indeed, thanks for the report! Should now be fixed.
Docs of function zstd::bulk::decompress still look same: https://docs.rs/zstd/0.13.0/zstd/bulk/fn.decompress.html
Oh right I only updated Decompressor::decompress(). Fixing that now.