ZSTD_compressSequencesAndLiterals() now supports multi-blocks frames.

This commit is contained in:
Yann Collet
2024-12-20 10:36:59 -08:00
parent 5164d44dab
commit 31b5ef2539
3 changed files with 23 additions and 24 deletions
+2 -3
View File
@@ -1674,10 +1674,9 @@ ZSTD_compressSequences(ZSTD_CCtx* cctx,
* It's a speed optimization, useful when the right conditions are met,
* but it also features the following limitations:
* - Only supports explicit delimiter mode
* - Supports 1 block only (max input 128 KB)
* - Not compatible with frame checksum, which must disabled
* - Can fail (return an error) when input data cannot be compress sufficiently
* - @litSize must be == sum of all @.litLength fields in @inSeqs. Discrepancy will generate an error.
* - If any block is incompressible, will fail and return an error
* - @litSize must be == sum of all @.litLength fields in @inSeqs. Any discrepancy will generate an error.
* - the buffer @literals must be larger than @litSize by at least 8 bytes.
* @return : final compressed size, or a ZSTD error code.
*/