]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[libzstd] Fix return value docs for ZSTD_compressStream2()
authorNick Terrell <terrelln@fb.com>
Sat, 6 Apr 2019 00:44:07 +0000 (17:44 -0700)
committerNick Terrell <terrelln@fb.com>
Sat, 6 Apr 2019 00:44:07 +0000 (17:44 -0700)
lib/zstd.h

index e7023361f25328ef471c465c0d304d52a4c0e288..13dff417bdf078feab502cdea492ccfb9dcb1962 100644 (file)
@@ -577,10 +577,8 @@ typedef struct ZSTD_outBuffer_s {
 *  The caller must check if input has been entirely consumed.
 *  If not, the caller must make some room to receive more compressed data,
 *  and then present again remaining input data.
-* @return : a size hint, preferred nb of bytes to use as input for next function call
+* @return : provides a minimum amount of data remaining to be flushed from internal buffers
 *           or an error code, which can be tested using ZSTD_isError().
-*           Note 1 : it's just a hint, to help latency a little, any value will work fine.
-*           Note 2 : size hint is guaranteed to be <= ZSTD_CStreamInSize()
 *
 *  At any moment, it's possible to flush whatever data might remain stuck within internal buffer,
 *  using ZSTD_compressStream2() with ZSTD_e_flush. `output->pos` will be updated.