]> git.ipfire.org Git - thirdparty/zstd.git/commit
[lib] Take the shortcut when ZSTD_c_stableOutBuffer is set
authorNick Terrell <terrelln@fb.com>
Mon, 12 Oct 2020 21:09:12 +0000 (14:09 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 30 Oct 2020 17:55:34 +0000 (10:55 -0700)
commit987cb4ca6a526923918d40ad65d21e5ef3c724c3
treea5d8cd062c4cef8dd51647a21fc9823c66f6641e
parent809b2f2071c032a71cb91441db94e3f3825d2087
[lib] Take the shortcut when ZSTD_c_stableOutBuffer is set

When we have a stable output buffer take the single-pass shortcut.
It is okay to return `dstSizeTooSmall` if the output buffer isn't
big enough, because we know it will never grow.
lib/compress/zstd_compress.c