1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-01 09:47:01 +03:00

add dedicated error code for special case

ZSTD_compressSequencesAndLiterals() cannot produce an uncompressed block
This commit is contained in:
Yann Collet
2024-12-19 09:45:28 -08:00
parent a80f55f47d
commit b339efff2b
4 changed files with 3 additions and 2 deletions

View File

@ -1431,7 +1431,6 @@ ZSTD_compressSequencesAndLiterals(ZSTD_CCtx* cctx,
but it also features the following limitations:
- Only supports explicit delimiter mode
- Not compatible with frame checksum, which must disabled
- Does not write the content size in frame header
- 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.