From: Nick Terrell Date: Sat, 6 Apr 2019 00:44:07 +0000 (-0700) Subject: [libzstd] Fix return value docs for ZSTD_compressStream2() X-Git-Tag: v1.4.0^2~11^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce388fe4d265407fc2aa2cdeb6dec1efc07bb7fc;p=thirdparty%2Fzstd.git [libzstd] Fix return value docs for ZSTD_compressStream2() --- diff --git a/lib/zstd.h b/lib/zstd.h index e7023361f..13dff417b 100644 --- a/lib/zstd.h +++ b/lib/zstd.h @@ -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.